author | mickeyl <mickeyl> | 2003-01-24 21:13:38 (UTC) |
---|---|---|
committer | mickeyl <mickeyl> | 2003-01-24 21:13:38 (UTC) |
commit | f5fa70864c66da0f12f3d34f6451c74e3bfb3103 (patch) (unidiff) | |
tree | ad6585cc10ba3397bed82c87a1b692fa0a4b9e43 /share/tinykate/syntax/ferite.xml | |
parent | 67699ef8fd807a99c08d6401a67e8000bca8f1ca (diff) | |
download | opie-f5fa70864c66da0f12f3d34f6451c74e3bfb3103.zip opie-f5fa70864c66da0f12f3d34f6451c74e3bfb3103.tar.gz opie-f5fa70864c66da0f12f3d34f6451c74e3bfb3103.tar.bz2 |
added syntax highlighting patterns to tinykate
Diffstat (limited to 'share/tinykate/syntax/ferite.xml') (more/less context) (show whitespace changes)
-rw-r--r-- | share/tinykate/syntax/ferite.xml | 116 |
1 files changed, 116 insertions, 0 deletions
diff --git a/share/tinykate/syntax/ferite.xml b/share/tinykate/syntax/ferite.xml new file mode 100644 index 0000000..e1aea51 --- a/dev/null +++ b/share/tinykate/syntax/ferite.xml | |||
@@ -0,0 +1,116 @@ | |||
1 | <?xml version="1.0" encoding="UTF-8"?> | ||
2 | <!DOCTYPE language SYSTEM "language.dtd"> | ||
3 | <language name="ferite" version="1.00" kateversion="2.0" section="Scripts" extensions="*.fe;*.feh" mimetype="text/x-ferite-src"> | ||
4 | <highlighting> | ||
5 | <list name="keywords"> | ||
6 | <item> break </item> | ||
7 | <item> case </item> | ||
8 | <item> continue </item> | ||
9 | <item> else </item> | ||
10 | <item> for </item> | ||
11 | <item> if </item> | ||
12 | <item> do </item> | ||
13 | <item> function </item> | ||
14 | <item> namespace </item> | ||
15 | <item> while </item> | ||
16 | <item> class </item> | ||
17 | <item> new </item> | ||
18 | <item> uses </item> | ||
19 | <item> global </item> | ||
20 | <item> return </item> | ||
21 | <item> self </item> | ||
22 | <item> super </item> | ||
23 | <item> null </item> | ||
24 | <item> iferr </item> | ||
25 | <item> fix </item> | ||
26 | </list> | ||
27 | <list name="types"> | ||
28 | <item> number </item> | ||
29 | <item> void </item> | ||
30 | <item> string </item> | ||
31 | <item> array </item> | ||
32 | <item> object </item> | ||
33 | <item> final </item> | ||
34 | <item> static </item> | ||
35 | </list> | ||
36 | <contexts> | ||
37 | <context attribute="0" lineEndContext="#stay"> | ||
38 | <keyword attribute="1" context="#stay" String="keywords"/> | ||
39 | <keyword attribute="2" context="#stay" String="types"/> | ||
40 | <Float attribute="6" context="#stay"> | ||
41 | <AnyChar String="fF" attribute="6" context="#stay"/> | ||
42 | </Float> | ||
43 | <HlCOct attribute="4" context="#stay"/> | ||
44 | <HlCHex attribute="5" context="#stay"/> | ||
45 | <Int attribute="3" context="#stay" > | ||
46 | <StringDetect attribute="3" context="#stay" String="ULL" insensitive="TRUE"/> | ||
47 | <StringDetect attribute="3" context="#stay" String="LUL" insensitive="TRUE"/> | ||
48 | <StringDetect attribute="3" context="#stay" String="LLU" insensitive="TRUE"/> | ||
49 | <StringDetect attribute="3" context="#stay" String="UL" insensitive="TRUE"/> | ||
50 | <StringDetect attribute="3" context="#stay" String="LU" insensitive="TRUE"/> | ||
51 | <StringDetect attribute="3" context="#stay" String="LL" insensitive="TRUE"/> | ||
52 | <StringDetect attribute="3" context="#stay" String="U" insensitive="TRUE"/> | ||
53 | <StringDetect attribute="3" context="#stay" String="L" insensitive="TRUE"/> | ||
54 | </Int> | ||
55 | <HlCChar attribute="7" context="#stay"/> | ||
56 | <DetectChar attribute="8" context="1" char="""/> | ||
57 | <Detect2Chars attribute="10" context="2" char="/" char1="/"/> | ||
58 | <Detect2Chars attribute="10" context="3" char="/" char1="*"/> | ||
59 | <AnyChar attribute="11" context="#stay" String="!%&()+,-<=>?[]^{|}~"/> | ||
60 | <StringDetect attribute="10" context="8" String="#if 0" insensitive="FALSE"/> | ||
61 | <RegExpr attribute="12" context="4" String="^#"/> | ||
62 | </context> | ||
63 | <context attribute="8" lineEndContext="#pop"> | ||
64 | <LineContinue attribute="8" context="#stay"/> | ||
65 | <HlCStringChar attribute="9" context="#stay"/> | ||
66 | <DetectChar attribute="8" context="#pop" char="""/> | ||
67 | </context> | ||
68 | <context attribute="10" lineEndContext="#pop"> | ||
69 | <RegExpr attribute="3" context="#stay" String="(FIXME|TODO)" /> | ||
70 | </context> | ||
71 | <context attribute="10" lineEndContext="#stay"> | ||
72 | <Detect2Chars attribute="10" context="#pop" char="*" char1="/"/> | ||
73 | <RegExpr attribute="3" context="#stay" String="(FIXME|TODO)" /> | ||
74 | </context> | ||
75 | <context attribute="12" lineEndContext="#pop"> | ||
76 | <LineContinue attribute="12" context="#stay"/> | ||
77 | <RangeDetect attribute="13" context="#stay" char=""" char1="""/> | ||
78 | <RangeDetect attribute="13" context="#stay" char="<" char1=">"/> | ||
79 | <Detect2Chars attribute="10" context="2" char="/" char1="/"/> | ||
80 | <Detect2Chars attribute="10" context="5" char="/" char1="*"/> | ||
81 | </context> | ||
82 | <context attribute="10" lineEndContext="#stay"> | ||
83 | <Detect2Chars attribute="10" context="#pop" char="*" char1="/" /> | ||
84 | </context> | ||
85 | <context attribute="0" lineEndContext="#pop" /> | ||
86 | <context attribute="0" lineEndContext="#pop" /> | ||
87 | <context attribute="10" lineEndContext="#stay"> | ||
88 | <RegExpr attribute="3" context="#stay" String="(FIXME|TODO)" /> | ||
89 | <RegExpr attribute="10" context="#pop" String="^#endif" /> | ||
90 | </context> | ||
91 | </contexts> | ||
92 | <itemDatas> | ||
93 | <itemData name="Normal Text" defStyleNum="dsNormal"/> | ||
94 | <itemData name="Keyword" defStyleNum="dsKeyword"/> | ||
95 | <itemData name="Data Type" defStyleNum="dsDataType"/> | ||
96 | <itemData name="Decimal" defStyleNum="dsDecVal"/> | ||
97 | <itemData name="Octal" defStyleNum="dsBaseN"/> | ||
98 | <itemData name="Hex" defStyleNum="dsBaseN"/> | ||
99 | <itemData name="Float" defStyleNum="dsFloat"/> | ||
100 | <itemData name="Char" defStyleNum="dsChar"/> | ||
101 | <itemData name="String" defStyleNum="dsString"/> | ||
102 | <itemData name="String Char" defStyleNum="dsChar"/> | ||
103 | <itemData name="Comment" defStyleNum="dsComment"/> | ||
104 | <itemData name="Symbol" defStyleNum="dsNormal"/> | ||
105 | <itemData name="Preprocessor" defStyleNum="dsOthers"/> | ||
106 | <itemData name="Prep. Lib" defStyleNum="dsOthers"/> | ||
107 | </itemDatas> | ||
108 | </highlighting> | ||
109 | <general> | ||
110 | <comments> | ||
111 | <comment name="singleLine" start="//" /> | ||
112 | <comment name="multiLine" start="/*" end="*/" /> | ||
113 | </comments> | ||
114 | <keywords casesensitive="1" /> | ||
115 | </general> | ||
116 | </language> | ||