-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathccscript.vim
More file actions
35 lines (26 loc) · 1.14 KB
/
ccscript.vim
File metadata and controls
35 lines (26 loc) · 1.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
" Vim syntax file
" Language: CCScript
if exists("b:current_syntax")
finish
endif
syn keyword ccscriptTodo contained TODO FIXME XXX NOTE
syn match ccscriptComment "//.*$" contains=ccscriptTodo
syntax region ccscriptComment start="/\*" end="\*/" contains=ccscriptTodo fold
syn keyword ccscriptStatement define long ROM byte else menu ROMTBL flag short default if
syn keyword ccscriptStatement command nextgroup=ccscriptFunction skipwhite
syn match ccscriptOperator "\v\="
syn keyword ccscriptOperator and or not
syn match ccscriptFunction "\%([^[:cntrl:][:space:][:punct:][:digit:]]\|_\)\%([^[:cntrl:][:punct:][:space:]]\|_\)*" display contained
syn keyword ccscriptPreProc import count
syn region ccscriptString start=/\v"/ skip=/\v\\./ end=/\v"/
syn match ccscriptNumber /\<[0-9]\+/
syn match ccscriptNumber /\<0x[0-9A-Fa-f]\+/
let b:currentsyntax = "ccscript"
hi def link ccscriptTodo Todo
hi def link ccscriptComment Comment
hi def link ccscriptString Constant
hi def link ccscriptStatement Statement
hi def link ccscriptPreProc PreProc
hi def link ccscriptNumber Constant
hi def link ccscriptFunction Function
hi def link ccscriptOperator Operator