forked from andre-simon/highlight
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathballerina.lang
47 lines (39 loc) · 959 Bytes
/
ballerina.lang
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
Description="Ballerina"
Categories = {"source"}
Keywords={
{ Id=1,
List={
"boolean", "int","float","decimal","string",
"send","receive","flush","checking","trap","fork",
"start","wait","default","final","type","xmlns","as","if","else",
"match","var","error","foreach","while","continue","break","panic",
"return","import","version","public","listener","service","on",
"function","external","type","annotation","parameter","resource",
"is", "returns" },
},
{ Id=2,
List={
"false", "true", "nil"
},
},
{ Id=3,
Regex=[[@\w+]],
},
{ Id=4,
Regex=[[(\w+)\s*\(]],
},
}
Strings={
Delimiter=[["|']],
Escape = [[ \\u\d{4}|\\x?\d{3}|\\\w|\\[\'\\\"] ]],
Interpolation=[[ \$\{.+?\} ]],
}
IgnoreCase=false
Comments={
{
Block=false,
Delimiter= { [[\/\/|#]] },
}
}
Operators=[[\?|\(|\)|\[|\]|\{|\}|\,|\;|\.|\:|\&|<|>|\!|\=|\/|\*|\%|\+|\-|\|]]
EnableIndentation=false