Added line comment syntax highlight.

This commit is contained in:
yhirose 2015-07-08 10:26:29 -04:00
parent cce6c20132
commit 8f585f958e

View File

@ -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