blob: 6a85df6d5b70edb310a4d438c3e145e333cc94b4 (
plain) (
blame)
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
|
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE language SYSTEM "language.dtd">
<language _name="Scala" version="1.0" _section="Sources" mimetypes="text/x-scala">
<escape-char>\</escape-char>
<string _name = "String" style = "String" end-at-line-end = "TRUE">
<start-regex>"</start-regex>
<end-regex>"</end-regex>
</string>
<!--
<string _name = "String 2" style = "String" end-at-line-end = "TRUE">
<start-regex>'</start-regex>
<end-regex>'</end-regex>
</string>
-->
<pattern-item _name = "Character" style = "String" end-at-line-end = "TRUE">
<regex>'(\\(.|[0-7]+|u[0-9a-fA-F]+)|.)'</regex>
</pattern-item>
<pattern-item _name = "Symbol" style = "String" end-at-line-end = "TRUE">
<regex>'[^';,\) ]*</regex>
</pattern-item>
<line-comment _name = "Line Comment" style= "Comment">
<start-regex>//</start-regex>
</line-comment>
<block-comment _name = "Block Comment" style = "Comment">
<start-regex>/\*</start-regex>
<end-regex>\*/</end-regex>
</block-comment>
<keyword-list _name = "Declarations" style = "Keyword" case-sensitive="TRUE">
<keyword>class</keyword>
<keyword>def</keyword>
<keyword>extends</keyword>
<keyword>import</keyword>
<keyword>object</keyword>
<keyword>package</keyword>
<keyword>trait</keyword>
<keyword>type</keyword>
<keyword>val</keyword>
<keyword>var</keyword>
<keyword>with</keyword>
</keyword-list>
<keyword-list _name = "Primitives" style = "Data Type" case-sensitive="TRUE">
<keyword>boolean</keyword>
<keyword>byte</keyword>
<keyword>char</keyword>
<keyword>double</keyword>
<keyword>float</keyword>
<keyword>int</keyword>
<keyword>long</keyword>
<keyword>short</keyword>
</keyword-list>
<keyword-list _name = "Flow" style = "Keyword" case-sensitive="TRUE">
<keyword>case</keyword>
<keyword>catch</keyword>
<keyword>do</keyword>
<keyword>else</keyword>
<keyword>finally</keyword>
<keyword>for</keyword>
<keyword>if</keyword>
<keyword>return</keyword>
<keyword>throw</keyword>
<keyword>try</keyword>
<keyword>while</keyword>
<keyword>yield</keyword>
</keyword-list>
<keyword-list _name = "Modifiers" style = "Keyword" case-sensitive="TRUE">
<keyword>abstract</keyword>
<keyword>final</keyword>
<keyword>override</keyword>
<keyword>private</keyword>
<keyword>protected</keyword>
<keyword>sealed</keyword>
</keyword-list>
<keyword-list _name = "Memory" style = "Others" case-sensitive="TRUE">
<keyword>false</keyword>
<keyword>new</keyword>
<keyword>null</keyword>
<keyword>super</keyword>
<keyword>this</keyword>
<keyword>true</keyword>
</keyword-list>
<pattern-item _name = "Numeric" style = "Decimal">
<regex>(\b([0-9]+|0[xX][0-9a-fA-F]+)[Ll]?\b|\b(([0-9]+[Ee][-]?[0-9]+|([0-9]*\.[0-9]+|[0-9]+\.)([Ee][-]?[0-9]+)?)[fFdD]?|[0-9]+[FfDd]))</regex>
</pattern-item>
</language>
|