Commits

Steve Losh committed 34dccad

Add a tiny hg syntax file.

Comments (0)

Files changed (3)

clamsyntax/hg.vim

+syn match statusCode "^[MAR?] "
+
+hi def link statusCode Type

clamsyntax/pacman.vim

 " pacman program output syntax rules for Clam.vim
 
-" syn match outputItemLineFirst "\^\S\+/\.\+\>"
 syn match packageName "/\S\+\>"
 
 syn keyword packageGroupExtra extra
 hi def link packageGroupMultilib  Type
 hi def link packageInstalledMark  Error
 hi def link packageName           String
-" hi def link outputItemLineFirst Comment
         silent! execute winnr . 'wincmd w'
     endif
 endfunction " }}}
-function! s:ExtractBareCommanName(fullCommand)
+function! s:ExtractBareCommanName(fullCommand) " {{{
     let j = stridx(a:fullCommand, " ")
     if j > -1
         return a:fullCommand[0:j-1]
     endif
     return a:fullCommand
-endfunction
-function! s:ApplySyntaxFileForCommand(command)
+endfunction " }}}
+function! s:ApplySyntaxFileForCommand(command) " {{{
     let barecommand = s:ExtractBareCommanName(a:command)
     let syntaxfile = "clamsyntax/" . barecommand . ".vim"
     exe "runtime! " . syntaxfile
-endfunction
+endfunction " }}}
 function! s:ConfigureCurrentClamBuffer(command) " {{{
     " Set some basic options for the output window.
     setlocal buftype=nowrite bufhidden=wipe nobuflisted noswapfile nowrap nonumber