Recognize comments in HLDS highlighting for Vim
This commit is contained in:
parent
9f2edb2f81
commit
18897af4e3
1 changed files with 5 additions and 0 deletions
|
@ -28,6 +28,9 @@ syn match hldsBlockIdAftrKywrd "[a-z0-9_-]\+: " contained
|
||||||
syn match hldsTag " {[a-z0-9_-]\+}"
|
syn match hldsTag " {[a-z0-9_-]\+}"
|
||||||
syn match hldsPrice "€ *[0-9]\+\(\.[0-9]\+\|\)"
|
syn match hldsPrice "€ *[0-9]\+\(\.[0-9]\+\|\)"
|
||||||
|
|
||||||
|
syn match hldsComment "#.*$" contains=hldsTodo,@Spell
|
||||||
|
syn keyword hldsTodo FIXME NOTE NOTES TODO XXX contained
|
||||||
|
|
||||||
" trailing whitespace
|
" trailing whitespace
|
||||||
syn match hldsSpaceError display excludenl "\s\+$"
|
syn match hldsSpaceError display excludenl "\s\+$"
|
||||||
" spaces instead of tabs
|
" spaces instead of tabs
|
||||||
|
@ -44,6 +47,8 @@ hi def link hldsBlockIdAftrKywrd hldsBlockId
|
||||||
hi def link hldsPrice Number
|
hi def link hldsPrice Number
|
||||||
hi def link hldsTag String
|
hi def link hldsTag String
|
||||||
hi def link hldsSpaceError Error
|
hi def link hldsSpaceError Error
|
||||||
|
hi def link hldsComment Comment
|
||||||
|
hi def link hldsTodo Todo
|
||||||
|
|
||||||
let b:current_syntax = "hlds"
|
let b:current_syntax = "hlds"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue