1. Steve Losh
  2. clam.vim

Commits

Steve Losh  committed 34dccad

Add a tiny hg syntax file.

  • Participants
  • Parent commits ad458d7
  • Branches default

Comments (0)

Files changed (3)

File clamsyntax/hg.vim

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

File clamsyntax/pacman.vim

View file
 " 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

File plugin/clam.vim

View file
         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