summaryrefslogtreecommitdiff
path: root/share/tinykate/syntax/makefile.xml
Unidiff
Diffstat (limited to 'share/tinykate/syntax/makefile.xml') (more/less context) (ignore whitespace changes)
-rw-r--r--share/tinykate/syntax/makefile.xml81
1 files changed, 81 insertions, 0 deletions
diff --git a/share/tinykate/syntax/makefile.xml b/share/tinykate/syntax/makefile.xml
new file mode 100644
index 0000000..2abeca7
--- a/dev/null
+++ b/share/tinykate/syntax/makefile.xml
@@ -0,0 +1,81 @@
1<?xml version="1.0" encoding="UTF-8"?>
2<!DOCTYPE language SYSTEM "language.dtd">
3<!-- Makefile syntaxfile v0.9 by Per Wigren <wigren@home.se> -->
4<language name="Makefile" section="Other" extensions="" mimetype="text/x-makefile">
5 <highlighting>
6 <list name = "keywords">
7 <item> include </item>
8 <item> define </item>
9 <item> else </item>
10 <item> endef </item>
11 <item> endif </item>
12 <item> ifdef </item>
13 <item> ifeq </item>
14 <item> ifndef </item>
15 <item> ifneq </item>
16 </list>
17
18 <contexts>
19 <context name="Normal" attribute="Normal Text" lineEndContext="0">
20 <HlCStringChar attribute="Normal Text" lineEndContext="0"/>
21 <keyword String="keywords" attribute="Keyword" context="0"/>
22 <RegExpr String="#.*$" attribute="Comment" context="0"/>
23 <RegExpr String="(^|;)\s*\S+\s*=" attribute="Variable" context="1"/>
24 <RegExpr String="^.*:" attribute="Section" context="0"/>
25 <RegExpr attribute="Operator" String="\$\(" context="4"/>
26 <RegExpr attribute="Operator" String="\$\{" context="5"/>
27 <RegExpr String="[+*/=%$():;\\]" attribute="Operator" context="0"/>
28 </context>
29
30 <context name="Value" attribute="String" lineEndContext="1">
31 <HlCStringChar attribute="String Char" context="1"/>
32 <RegExpr attribute="Operator" String="\\$" context="1"/>
33 <RegExpr attribute="String" String="[^\\]?$" context="0"/>
34 <RegExpr attribute="Operator" String="\$\(" context="2"/>
35 <RegExpr attribute="Operator" String="\$\{" context="3"/>
36 <RegExpr attribute="Operator" String=";" context="0"/>
37 </context>
38
39 <context name="ParanVarFromValue" attribute="Variable" lineEndContext="2">
40 <HlCStringChar attribute="Variable" context="2"/>
41 <RegExpr attribute="Operator" String="\)[^$]" context="1"/>
42 <RegExpr attribute="Operator" String="\)$" context="0"/>
43 </context>
44
45 <context name="BrackVarFromValue" attribute="Variable" lineEndContext="3">
46 <HlCStringChar attribute="Variable" context="3"/>
47 <RegExpr attribute="Operator" String="\}[^$]" context="1"/>
48 <RegExpr attribute="Operator" String="\}$" context="0"/>
49 </context>
50
51 <context name="ParanVarFromNormal" attribute="Variable" lineEndContext="4">
52 <HlCChar attribute="Variable" context="4"/>
53 <RegExpr attribute="Operator" String="\)" context="0"/>
54 </context>
55
56 <context name="BrackVarFromNormal" attribute="Variable" lineEndContext="5">
57 <HlCChar attribute="Variable" context="5"/>
58 <RegExpr attribute="Operator" String="\}" context="0"/>
59 </context>
60
61 </contexts>
62
63 <itemDatas>
64 <itemData name="Normal Text"defStyleNum="dsNormal"/>
65 <itemData name="Keyword" defStyleNum="dsKeyword"/>
66 <itemData name="Comment" defStyleNum="dsComment"/>
67 <itemData name="String" defStyleNum="dsString"/>
68 <itemData name="String Char"defStyleNum="dsChar"/>
69 <itemData name="Variable" defStyleNum="dsDataType"/>
70 <itemData name="Section" defStyleNum="dsOthers"/>
71 <itemData name="Operator" defStyleNum="dsChar"/>
72 </itemDatas>
73 </highlighting>
74
75 <general>
76 <comments>
77 <comment name = "singleLine" start = "#"/>
78 </comments>
79 <keywords casesensitive = "1" />
80 </general>
81</language>