Created
July 13, 2010 11:10
-
-
Save tyru/473733 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if v:version < 600 | |
syntax clear | |
elseif exists('b:current_syntax') | |
finish | |
endif | |
syn case match | |
syn match GrassProgram /.*/ contains=GrassLeafSmallW,GrassLeafW,GrassLeafV,GrassComment | |
syn match GrassLeafSmallW /[ww]/ contained | |
syn match GrassLeafW /[WW]/ contained | |
syn match GrassLeafV /[vv]/ contained | |
syn match GrassComment /[^wwWWvv]\+/ contained | |
hi GrassLightGreen guifg=#00ff00 | |
hi GrassGreen guifg=#00aa00 | |
hi GrassDarkGreen guifg=#006600 | |
if v:version >= 508 || !exists("did_grass_syn_inits") | |
if v:version < 508 | |
let did_grass_syn_inits = 1 | |
command -nargs=+ HiLink hi link <args> | |
else | |
command -nargs=+ HiLink hi def link <args> | |
endif | |
HiLink GrassLeafSmallW GrassLightGreen | |
HiLink GrassLeafW GrassGreen | |
HiLink GrassLeafV GrassDarkGreen | |
HiLink GrassComment Comment | |
delcommand HiLink | |
endif | |
let b:current_syntax = 'grass' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment