Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add a tiny hg syntax file.

  • Loading branch information...
commit 1f5a5c6ae82a8000d6fb3ad98b3a2d1a3e991476 1 parent 792a68a
Steve Losh authored
Showing with 7 additions and 6 deletions.
  1. +3 −0  clamsyntax/hg.vim
  2. +0 −2  clamsyntax/pacman.vim
  3. +4 −4 plugin/clam.vim
3  clamsyntax/hg.vim
View
@@ -0,0 +1,3 @@
+syn match statusCode "^[MAR?] "
+
+hi def link statusCode Type
2  clamsyntax/pacman.vim
View
@@ -1,6 +1,5 @@
" pacman program output syntax rules for Clam.vim
-" syn match outputItemLineFirst "\^\S\+/\.\+\>"
syn match packageName "/\S\+\>"
syn keyword packageGroupExtra extra
@@ -14,4 +13,3 @@ hi def link packageGroupExtra Type
hi def link packageGroupMultilib Type
hi def link packageInstalledMark Error
hi def link packageName String
-" hi def link outputItemLineFirst Comment
8 plugin/clam.vim
View
@@ -38,18 +38,18 @@ function! s:GoToClamBuffer(command) " {{{
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
Please sign in to comment.
Something went wrong with that request. Please try again.