git.haldean.org expel / 76dbc97
rename syntax file Haldean Brown 3 years ago
2 changed file(s) with 33 addition(s) and 33 deletion(s). Raw diff Collapse all Expand all
+0
-33
res/expel.vim less more
0 " check out :help group-name for the list of groups
1
2 if exists("b:current_syntax")
3 finish
4 endif
5
6 syntax match ubikBind ":"
7 syntax match ubikBind "\."
8 syntax match ubikBind "!="
9 highlight link ubikBind Delimiter
10
11 syntax match ubikSubbind "\^"
12 syntax match ubikSubbind "="
13 syntax match ubikSubbind "=>"
14 syntax match ubikSubbind "/>"
15 syntax match ubikSubbind "->"
16 syntax match ubikSubbind "\\"
17 highlight link ubikSubbind Keyword
18
19 syntax region ubikString start=/"/ skip=/\\"/ end=/"/ oneline
20 highlight default link ubikString String
21
22 syntax region ubikComment start=/#/ end=/\n/ oneline
23 highlight default link ubikComment Comment
24
25 syntax match ubikNumber "\v<\d+>"
26 syntax match ubikNumber "\v<\d+\.\d+>"
27 highlight default link ubikNumber Number
28
29 setlocal shiftwidth=4
30 setlocal tabstop=4
31
32 let b:current_syntax = "ubik"
0 " check out :help group-name for the list of groups
1
2 if exists("b:current_syntax")
3 finish
4 endif
5
6 syntax match ubikBind ":"
7 syntax match ubikBind "\."
8 syntax match ubikBind "!="
9 highlight link ubikBind Delimiter
10
11 syntax match ubikSubbind "\^"
12 syntax match ubikSubbind "="
13 syntax match ubikSubbind "=>"
14 syntax match ubikSubbind "/>"
15 syntax match ubikSubbind "->"
16 syntax match ubikSubbind "\\"
17 highlight link ubikSubbind Keyword
18
19 syntax region ubikString start=/"/ skip=/\\"/ end=/"/ oneline
20 highlight default link ubikString String
21
22 syntax region ubikComment start=/#/ end=/\n/ oneline
23 highlight default link ubikComment Comment
24
25 syntax match ubikNumber "\v<\d+>"
26 syntax match ubikNumber "\v<\d+\.\d+>"
27 highlight default link ubikNumber Number
28
29 setlocal shiftwidth=4
30 setlocal tabstop=4
31
32 let b:current_syntax = "ubik"