summaryrefslogtreecommitdiff
path: root/share/tinykate/syntax/matlab.xml
blob: d8bdc51961c3cb4b812e70b9b54b88af98a0c7e6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
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="&apos;"/>
        <DetectChar attribute="9" context="1" char="&apos;"/>
        <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="&apos;"/>
      </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 -->