summaryrefslogtreecommitdiff
path: root/share/tinykate/syntax/bash.xml
Unidiff
Diffstat (limited to 'share/tinykate/syntax/bash.xml') (more/less context) (ignore whitespace changes)
-rw-r--r--share/tinykate/syntax/bash.xml82
1 files changed, 82 insertions, 0 deletions
diff --git a/share/tinykate/syntax/bash.xml b/share/tinykate/syntax/bash.xml
new file mode 100644
index 0000000..08e00b0
--- a/dev/null
+++ b/share/tinykate/syntax/bash.xml
@@ -0,0 +1,82 @@
1<?xml version="1.0" encoding="UTF-8"?>
2<!DOCTYPE language SYSTEM "language.dtd">
3<language name="Bash" section="Scripts" extensions="" mimetype="text/x-shellscript">
4 <highlighting>
5 <list name = "keywords">
6 <item> break </item>
7 <item> case </item>
8 <item> done </item>
9 <item> do </item>
10 <item> elif </item>
11 <item> else </item>
12 <item> esac </item>
13 <item> exit </item>
14 <item> export </item>
15 <item> fi </item>
16 <item> for </item>
17 <item> function </item>
18 <item> if </item>
19 <item> in </item>
20 <item> return </item>
21 <item> select </item>
22 <item> then </item>
23 <item> until </item>
24 <item> while </item>
25 <item> . </item>
26 </list>
27 <list name = "commands">
28 <item> cp </item>
29 <item> date </item>
30 <item> echo </item>
31 <item> eval </item>
32 </list>
33
34 <contexts>
35 <context name = "Base" attribute = "Normal Text" lineEndContext="0">
36 <keyword String = "keywords" attribute = "Keyword" context="0"/>
37 <keyword String = "commands" attribute = "Command" context="0"/>
38 <Int attribute = "Decimal" context="0"/>
39 <RegExpr String = "\$[A-Za-z0-9_?{!]+" attribute = "Parameter" context="0"/>
40 <RangeDetect char = "&quot;" char1 = "&quot;" attribute = "String" context="0"/>
41 <AnyChar String = "|&lt;&gt;=;" attribute = "Operator" context="0"/>
42 <DetectChar char="`" attribute = "Substitution" context = "2"/>
43 <Detect2Chars attribute="0" context="Normal Text" char="\" char1="#"/>
44 <RegExpr String= "#.*$" attribute = "Comment" context="0"/>
45 </context>
46
47 <context name = "String" attribute = "String" lineEndContext="1">
48 <DetectChar char = "&quot;" attribute = "String" context = "0"/>
49 </context>
50
51 <context name = "Substitution" attribute = "Substitution" lineEndContext="2">
52 <DetectChar char = "`" attribute = "Substitution" context = "0"/>
53 </context>
54
55 <context name = "Parameter" attribute = "Parameter" lineEndContext="3">
56 <RegExpr String = "\$[A-Za-z0-9_?]+" attribute = "Parameter" context="0"/>
57 </context>
58
59 </contexts>
60
61 <itemDatas>
62 <itemData name = "Normal Text" defStyleNum = "dsNormal"/>
63 <itemData name = "Keyword" defStyleNum = "dsKeyword"/>
64 <itemData name = "Decimal" defStyleNum = "dsDecVal"/>
65 <itemData name = "Float" defStyleNum = "dsFloat"/>
66 <itemData name = "Char" defStyleNum = "dsChar"/>
67 <itemData name = "String" defStyleNum = "dsString"/>
68 <itemData name = "Comment" defStyleNum = "dsComment"/>
69 <itemData name = "Substitution" defStyleNum = "dsOthers"/>
70 <itemData name = "Parameter" defStyleNum = "dsOthers"/>
71 <itemData name = "Operator" defStyleNum = "dsOthers"/>
72 <itemData name = "Command" defStyleNum = "dsNormal"/>
73 </itemDatas>
74 </highlighting>
75 <general>
76 <comments>
77 <comment name="singleLine" start="#" />
78 </comments>
79 <keywords casesensitive="1" />
80 </general>
81</language>
82