author | mickeyl <mickeyl> | 2003-01-24 21:13:38 (UTC) |
---|---|---|
committer | mickeyl <mickeyl> | 2003-01-24 21:13:38 (UTC) |
commit | f5fa70864c66da0f12f3d34f6451c74e3bfb3103 (patch) (side-by-side diff) | |
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 @@ +<?xml version="1.02" encoding="UTF-8"?> +<!DOCTYPE language SYSTEM "language.dtd"> +<language name="Matlab M-File" version="1.00" kateversion="2.0" section="Sources" extensions="*.m;*.M" mimetype="text/mfile"> + <highlighting> + <list name="keywords"> + <item> break </item> + <item> end </item> + <item> case </item> + <item> continue </item> + <item> do </item> + <item> else </item> + <item> elseif </item> + <item> for </item> + <item> goto </item> + <item> if </item> + <item> return </item> + <item> struct </item> + <item> switch </item> + <item> while </item> + <item> function </item> + <item> otherwise </item> + <item> try </item> + <item> catch </item> + </list> + <list name="types"> + <item> global </item> + <item> persistent </item> + <item> double </item> + </list> + <list name="commands"> + <item> filter </item> + <item> disp </item> + <item> sprintf </item> + <item> fprintf </item> + <item> freqz </item> + <item> title </item> + <item> figure </item> + <item> set </item> + <item> get </item> + <item> fft </item> + <item> zplane </item> + <item> abs </item> + <item> real </item> + <item> imag </item> + <item> angle </item> + <item> waitforbuttonpress </item> + <item> stem </item> + <item> plot </item> + <item> subplot </item> + <item> scatter </item> + <item> stairs </item> + <item> impz </item> + <item> mesh </item> + <item> zoom </item> + <item> semilogx </item> + <item> semilogy </item> + <item> bar </item> + <item> grid </item> + <item> linspace </item> + <item> size </item> + <item> length </item> + <item> load </item> + <item> save </item> + <item> open </item> + <item> close </item> + </list> + <contexts> + <context attribute="0" lineEndContext="0"> + <keyword attribute="1" context="0" String="keywords"/> + <keyword attribute="2" context="0" String="types"/> + <keyword attribute="11" context="0" String="commands"/> + <Float attribute="6" context="0"> + <AnyChar String="fF" attribute="6" context="0"/> + </Float> + <HlCOct attribute="4" context="0"/> + <HlCHex attribute="5" context="0"/> + <Int attribute="3" context="0" > + <StringDetect attribute="3" context="0" String="ULL" insensitive="TRUE"/> + <StringDetect attribute="3" context="0" String="LUL" insensitive="TRUE"/> + <StringDetect attribute="3" context="0" String="LLU" insensitive="TRUE"/> + <StringDetect attribute="3" context="0" String="UL" insensitive="TRUE"/> + <StringDetect attribute="3" context="0" String="LU" insensitive="TRUE"/> + <StringDetect attribute="3" context="0" String="LL" insensitive="TRUE"/> + <StringDetect attribute="3" context="0" String="U" insensitive="TRUE"/> + <StringDetect attribute="3" context="0" String="L" insensitive="TRUE"/> + </Int> + <HlCChar attribute="7" context="0"/> + <DetectChar attribute="8" context="1" char="'"/> + <DetectChar attribute="9" context="1" char="'"/> + <Detect2Chars attribute="10" context="2" char="%" char1="%"/> + <Detect2Chars attribute="10" context="2" char="%" char1=" "/> + </context> + <context attribute="8" lineEndContext="0" name="String"> + <LineContinue attribute="8" context="#stay"/> + <HlCStringChar attribute="9" context="1"/> + <DetectChar attribute="8" context="0" char="'"/> + </context> + <context attribute="10" lineEndContext="0"/> + <context attribute="0" lineEndContext="1" /> + <context attribute="0" lineEndContext="4" /> + </contexts> + <itemDatas> + <itemData name="Normal Text" defStyleNum="dsNormal"/> + <itemData name="Keyword" defStyleNum="dsKeyword" color="#1414e4" selColor="#ffd60b"/> + <itemData name="Data Type" defStyleNum="dsDataType"/> + <itemData name="Decimal" defStyleNum="dsDecVal" color="#000000" selColor="#ffffff"/> + <itemData name="Octal" defStyleNum="dsBaseN"/> + <itemData name="Hex" defStyleNum="dsBaseN"/> + <itemData name="Float" defStyleNum="dsFloat"/> + <itemData name="Char" defStyleNum="dsChar"/> + <itemData name="String" defStyleNum="dsString" color="#ff0000" selColor="#ff0000"/> + <itemData name="String Char" defStyleNum="dsChar" color="#ff0000" selColor="#ff0000"/> + <itemData name="Comment" defStyleNum="dsComment" color="#2b7805" selColor="#945ca4"/> + <itemData name="Command" defStyleNum="dsCommand" color="#000000" selColor="#ffffff" bold="1"/> + </itemDatas> + </highlighting> + <general> + <comments> + <comment name="singleLine" start="% " /> + <comment name="singleLine" start="%%" /> + </comments> + <keywords casesensitive="1" /> + </general> +</language> +<!-- Additional commands can easily be added in the above 'commands' section --> |