-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsylk.vim
55 lines (39 loc) · 1.47 KB
/
sylk.vim
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
if exists("b:current_syntax")
finish
endif
syn match SylkIdentifier "\<[a-zA-Z_][a-zA-Z0-9_]*\>"
syn match SylkFunction "\<[a-zA-Z_][a-zA-Z0-9_]*\>" contained
syn region SylkString start='"' end='"'
syn region SylkString start="'" end="'"
syn region SylkComment start="#" end="$"
syn match SylkNumber '\d\+' display
syn match SylkNumber '[-]\d\+' display
syn keyword SylkDeclarations var class const nextgroup=SylkIdentifier skipwhite
syn keyword SylkDeclarations def nextgroup=SylkFunction skipwhite
syn keyword SylkConditionals if else
syn keyword SylkRepeats while
syn keyword SylkSpecial self
syn keyword SylkKeywords return export import
syn keyword SylkBools true false
syn match SylkParants /[()]/ contains=SylkParants
syn match SylkBrackets /[{}]/ contains=SylkBrackets
syn match SylkSquare /[[]]/ contains=SylkSquare
syn match SylkPunctuations /[,]/
syn match SylkPunctuations /[.]/
syn region SylkBlock start="{" end="}" fold transparent
let b:current_syntax = "sylk"
hi def link SylkDeclarations Type
hi def link SylkKeywords Keyword
hi def link SylkIdentifier Identifier
hi def link SylkString String
hi def link SylkNumber Number
hi def link SylkSpecial Special
hi def link SylkFunction Function
hi def link SylkConditionals Conditional
hi def link SylkRepeats Repeat
hi def link SylkBrackets Delimiter
hi def link SylkParants Delimiter
hi def link SylkSquare Delimiter
hi def link SylkPunctuations Delimiter
hi def link SylkBools Boolean
hi def link SylkComment Comment