You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
42 lines
1.5 KiB
42 lines
1.5 KiB
9 years ago
|
|
||
|
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
|
||
|
|
||
9 years ago
|
syn keyword culFunction fn
|
||
9 years ago
|
syn keyword culSelf self
|
||
|
syn keyword culConditional if else
|
||
|
syn keyword culRepeat while
|
||
9 years ago
|
syn keyword culReturn return
|
||
|
syn keyword culDebugger debugger
|
||
9 years ago
|
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
|
||
9 years ago
|
hi def link culFunction Type
|
||
9 years ago
|
hi def link culLineComment Comment
|
||
|
hi def link culOperator Operator
|
||
|
hi def link culRepeat Repeat
|
||
9 years ago
|
hi def link culReturn Statement
|
||
|
hi def link culDebugger Debug
|
||
9 years ago
|
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"
|