mirror of
https://github.com/yhirose/cpp-peglib.git
synced 2024-12-23 04:15:31 +00:00
38 lines
1.4 KiB
VimL
38 lines
1.4 KiB
VimL
|
|
syn match culOperator "\%(+\|-\|/\|*\|=\|\^\|&\||\|!\|>\|<\|%\)=\?"
|
|
syn match culDecNumber "\<[0-9][0-9_]*"
|
|
syn match culFuncCall "\w\(\w\)*("he=e-1,me=e-1
|
|
syn match culError ";"
|
|
syn match culError "\s*$"
|
|
syn match culLineComment "\(\/\/\|#\).*" contains=@Spell,javaScriptCommentTodo
|
|
|
|
syn keyword culKeyword fn
|
|
syn keyword culSelf self
|
|
syn keyword culConditional if else
|
|
syn keyword culRepeat while
|
|
syn keyword culBoolean true false
|
|
syn keyword culCommentTodo TODO FIXME XXX TBD contained
|
|
syn keyword culStorage mut
|
|
|
|
syn region culStringS start=+'+ skip=+\\\\\|\\'+ end=+'\|$+
|
|
syn region culStringD start=+"+ skip=+\\\\\|\\"+ end=+"\|$+
|
|
syn region culComment start="/\*" end="\*/" contains=@Spell,javaScriptCommentTodo
|
|
|
|
hi def link culBoolean Boolean
|
|
hi def link culComment Comment
|
|
hi def link culCommentTodo Todo
|
|
hi def link culConditional Conditional
|
|
hi def link culDecNumber Number
|
|
hi def link culFuncCall Function
|
|
hi def link culKeyword Keyword
|
|
hi def link culLineComment Comment
|
|
hi def link culOperator Operator
|
|
hi def link culRepeat Repeat
|
|
hi def link culSelf Constant
|
|
hi def link culStorage StorageClass
|
|
hi def link culStringD String
|
|
hi def link culStringS String
|
|
hi def link culError Error
|
|
|
|
let b:current_syntax = "cul"
|