-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathfuthark.xml
71 lines (66 loc) · 2.75 KB
/
futhark.xml
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
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE language SYSTEM "language.dtd"
[
<!ENTITY DEC "[0-9][0-9_]*"> <!-- Decimal digits with underscores. -->
]>
<language name="Futhark" version="9" kateversion="3.4" section="Sources" extensions="*.fut" mimetype="text/x-futhark" author="Troels Henriksen (athas@sigkill.dk)" license="LGPL">
<highlighting>
<list name="keywords">
<item>if</item>
<item>then</item>
<item>else</item>
<item>let</item>
<item>in</item>
<item>loop</item>
<item>val</item>
<item>for</item>
<item>do</item>
<item>with</item>
<item>local</item>
<item>open</item>
<item>include</item>
<item>import</item>
<item>type</item>
<item>def</item>
<item>entry</item>
<item>module</item>
<item>while</item>
<item>match</item>
<item>case</item>
<item>assert</item>
</list>
<contexts>
<context attribute="Normal" lineEndContext="#stay" name="code">
<RegExpr attribute="Comment" context="comment" String="--[\-]*([^!#\$%&\*\+\./<=>\?@\\^\|\-~:]|$)" />
<keyword attribute="Keyword" context="#stay" String="keywords" />
<!-- Numeric constants. -->
<!-- Note that they may contain underscores. -->
<RegExpr String="-?0[xX][0-9A-Fa-f_]+" context="#stay" attribute="Hexadecimal" />
<RegExpr String="-?0[oO][0-7_]+" context="#stay" attribute="Octal" />
<RegExpr String="-?0[bB][01_]+" context="#stay" attribute="Binary" />
<RegExpr String="-?&DEC;(\.&DEC;([eE][-+]?&DEC;)?|[eE][-+]?&DEC;)" context="#stay" attribute="Float" />
<RegExpr String="-?&DEC;" context="#stay" attribute="Decimal" />
</context>
<context attribute="Comment" lineEndContext="#pop" name="comment">
</context>
</contexts>
<itemDatas>
<itemData name="Normal" defStyleNum="dsNormal" spellChecking="false" />
<itemData name="Comment" defStyleNum="dsComment" />
<itemData name="Keyword" defStyleNum="dsKeyword" spellChecking="false" />
<itemData name="Builtin" defStyleNum="dsKeyword" spellChecking="false" />
<itemData name="Decimal" defStyleNum="dsDecVal" />
<itemData name="Hexadecimal" defStyleNum="dsBaseN" />
<itemData name="Octal" defStyleNum="dsBaseN" />
<itemData name="Binary" defStyleNum="dsBaseN" />
<itemData name="Float" defStyleNum="dsFloat" />
</itemDatas>
</highlighting>
<general>
<folding indentationsensitive="1"/>
<comments>
<comment name="singleLine" start="--" />
</comments>
<keywords casesensitive="1" />
</general>
</language>