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/matlab.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/matlab.xml') (more/less context) (ignore whitespace changes)
-rw-r--r-- | share/tinykate/syntax/matlab.xml | 125 |
1 files changed, 125 insertions, 0 deletions
diff --git a/share/tinykate/syntax/matlab.xml b/share/tinykate/syntax/matlab.xml new file mode 100644 index 0000000..d8bdc51 --- a/dev/null +++ b/share/tinykate/syntax/matlab.xml | |||
@@ -0,0 +1,125 @@ | |||
1 | <?xml version="1.02" encoding="UTF-8"?> | ||
2 | <!DOCTYPE language SYSTEM "language.dtd"> | ||
3 | <language name="Matlab M-File" version="1.00" kateversion="2.0" section="Sources" extensions="*.m;*.M" mimetype="text/mfile"> | ||
4 | <highlighting> | ||
5 | <list name="keywords"> | ||
6 | <item> break </item> | ||
7 | <item> end </item> | ||
8 | <item> case </item> | ||
9 | <item> continue </item> | ||
10 | <item> do </item> | ||
11 | <item> else </item> | ||
12 | <item> elseif </item> | ||
13 | <item> for </item> | ||
14 | <item> goto </item> | ||
15 | <item> if </item> | ||
16 | <item> return </item> | ||
17 | <item> struct </item> | ||
18 | <item> switch </item> | ||
19 | <item> while </item> | ||
20 | <item> function </item> | ||
21 | <item> otherwise </item> | ||
22 | <item> try </item> | ||
23 | <item> catch </item> | ||
24 | </list> | ||
25 | <list name="types"> | ||
26 | <item> global </item> | ||
27 | <item> persistent </item> | ||
28 | <item> double </item> | ||
29 | </list> | ||
30 | <list name="commands"> | ||
31 | <item> filter </item> | ||
32 | <item> disp </item> | ||
33 | <item> sprintf </item> | ||
34 | <item> fprintf </item> | ||
35 | <item> freqz </item> | ||
36 | <item> title </item> | ||
37 | <item> figure </item> | ||
38 | <item> set </item> | ||
39 | <item> get </item> | ||
40 | <item> fft </item> | ||
41 | <item> zplane </item> | ||
42 | <item> abs </item> | ||
43 | <item> real </item> | ||
44 | <item> imag </item> | ||
45 | <item> angle </item> | ||
46 | <item> waitforbuttonpress </item> | ||
47 | <item> stem </item> | ||
48 | <item> plot </item> | ||
49 | <item> subplot </item> | ||
50 | <item> scatter </item> | ||
51 | <item> stairs </item> | ||
52 | <item> impz </item> | ||
53 | <item> mesh </item> | ||
54 | <item> zoom </item> | ||
55 | <item> semilogx </item> | ||
56 | <item> semilogy </item> | ||
57 | <item> bar </item> | ||
58 | <item> grid </item> | ||
59 | <item> linspace </item> | ||
60 | <item> size </item> | ||
61 | <item> length </item> | ||
62 | <item> load </item> | ||
63 | <item> save </item> | ||
64 | <item> open </item> | ||
65 | <item> close </item> | ||
66 | </list> | ||
67 | <contexts> | ||
68 | <context attribute="0" lineEndContext="0"> | ||
69 | <keyword attribute="1" context="0" String="keywords"/> | ||
70 | <keyword attribute="2" context="0" String="types"/> | ||
71 | <keyword attribute="11" context="0" String="commands"/> | ||
72 | <Float attribute="6" context="0"> | ||
73 | <AnyChar String="fF" attribute="6" context="0"/> | ||
74 | </Float> | ||
75 | <HlCOct attribute="4" context="0"/> | ||
76 | <HlCHex attribute="5" context="0"/> | ||
77 | <Int attribute="3" context="0" > | ||
78 | <StringDetect attribute="3" context="0" String="ULL" insensitive="TRUE"/> | ||
79 | <StringDetect attribute="3" context="0" String="LUL" insensitive="TRUE"/> | ||
80 | <StringDetect attribute="3" context="0" String="LLU" insensitive="TRUE"/> | ||
81 | <StringDetect attribute="3" context="0" String="UL" insensitive="TRUE"/> | ||
82 | <StringDetect attribute="3" context="0" String="LU" insensitive="TRUE"/> | ||
83 | <StringDetect attribute="3" context="0" String="LL" insensitive="TRUE"/> | ||
84 | <StringDetect attribute="3" context="0" String="U" insensitive="TRUE"/> | ||
85 | <StringDetect attribute="3" context="0" String="L" insensitive="TRUE"/> | ||
86 | </Int> | ||
87 | <HlCChar attribute="7" context="0"/> | ||
88 | <DetectChar attribute="8" context="1" char="'"/> | ||
89 | <DetectChar attribute="9" context="1" char="'"/> | ||
90 | <Detect2Chars attribute="10" context="2" char="%" char1="%"/> | ||
91 | <Detect2Chars attribute="10" context="2" char="%" char1=" "/> | ||
92 | </context> | ||
93 | <context attribute="8" lineEndContext="0" name="String"> | ||
94 | <LineContinue attribute="8" context="#stay"/> | ||
95 | <HlCStringChar attribute="9" context="1"/> | ||
96 | <DetectChar attribute="8" context="0" char="'"/> | ||
97 | </context> | ||
98 | <context attribute="10" lineEndContext="0"/> | ||
99 | <context attribute="0" lineEndContext="1" /> | ||
100 | <context attribute="0" lineEndContext="4" /> | ||
101 | </contexts> | ||
102 | <itemDatas> | ||
103 | <itemData name="Normal Text" defStyleNum="dsNormal"/> | ||
104 | <itemData name="Keyword" defStyleNum="dsKeyword" color="#1414e4" selColor="#ffd60b"/> | ||
105 | <itemData name="Data Type" defStyleNum="dsDataType"/> | ||
106 | <itemData name="Decimal" defStyleNum="dsDecVal" color="#000000" selColor="#ffffff"/> | ||
107 | <itemData name="Octal" defStyleNum="dsBaseN"/> | ||
108 | <itemData name="Hex" defStyleNum="dsBaseN"/> | ||
109 | <itemData name="Float" defStyleNum="dsFloat"/> | ||
110 | <itemData name="Char" defStyleNum="dsChar"/> | ||
111 | <itemData name="String" defStyleNum="dsString" color="#ff0000" selColor="#ff0000"/> | ||
112 | <itemData name="String Char" defStyleNum="dsChar" color="#ff0000" selColor="#ff0000"/> | ||
113 | <itemData name="Comment" defStyleNum="dsComment" color="#2b7805" selColor="#945ca4"/> | ||
114 | <itemData name="Command" defStyleNum="dsCommand" color="#000000" selColor="#ffffff" bold="1"/> | ||
115 | </itemDatas> | ||
116 | </highlighting> | ||
117 | <general> | ||
118 | <comments> | ||
119 | <comment name="singleLine" start="% " /> | ||
120 | <comment name="singleLine" start="%%" /> | ||
121 | </comments> | ||
122 | <keywords casesensitive="1" /> | ||
123 | </general> | ||
124 | </language> | ||
125 | <!-- Additional commands can easily be added in the above 'commands' section --> | ||