mirror of
https://github.com/yhirose/cpp-peglib.git
synced 2024-12-22 11:55:30 +00:00
Added line comment syntax highlight.
This commit is contained in:
parent
cce6c20132
commit
8f585f958e
4
peg.vim
4
peg.vim
@ -5,6 +5,8 @@ syn match pegU2M /<-/
|
||||
|
||||
syn match pegName /\v[a-zA-Z_][a-zA-Z0-9_]*/
|
||||
|
||||
syn match pegLineComment '#.*'
|
||||
|
||||
syn region pegStringD start=/\v"/ skip=/\v\\./ end=/\v"/
|
||||
syn region pegStringS start=/\v'/ skip=/\v\\./ end=/\v'/
|
||||
syn region pegClass start=/\v\[/ skip=/\v\\./ end=/\v]/
|
||||
@ -17,6 +19,8 @@ hi def link pegU2M Statement
|
||||
|
||||
hi def link pegName Identifier
|
||||
|
||||
hi def link pegLineComment Comment
|
||||
|
||||
hi def link pegStringD String
|
||||
hi def link pegStringS String
|
||||
hi def link pegClass String
|
||||
|
Loading…
Reference in New Issue
Block a user