Add /usr/local/lib/faustine and /usr/lib/faustine to preprocessor import path.
[Faustine.git] / interpretor / preprocessor / faust-0.9.47mr3 / syntax-highlighting / faust.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!DOCTYPE language SYSTEM "language.dtd">
3 <language name="Faust" version="1" kateversion="2.4" section="Sources" extensions="*.dsp;*.lib" mimetype="text/x-faust" priority="9">
4 <highlighting>
5 <list name="primitives">
6 <item> mem </item>
7 <item> prefix </item>
8 <item> int </item>
9 <item> float </item>
10 <item> rdtable </item>
11 <item> rwtable </item>
12 <item> select2 </item>
13 <item> select3 </item>
14 <item> ffunction </item>
15 <item> fconstant</item>
16 <item> fvariable</item>
17 <item> button </item>
18 <item> checkbox </item>
19 <item> vslider </item>
20 <item> hslider </item>
21 <item> nentry </item>
22 <item> vgroup </item>
23 <item> hgroup </item>
24 <item> tgroup </item>
25 <item> vbargraph </item>
26 <item> hbargraph </item>
27 <item> attach </item>
28 <item> acos </item>
29 <item> asin </item>
30 <item> atan </item>
31 <item> atan2 </item>
32 <item> cos </item>
33 <item> sin </item>
34 <item> tan </item>
35 <item> exp </item>
36 <item> log </item>
37 <item> log10 </item>
38 <item> pow </item>
39 <item> sqrt </item>
40 <item> abs </item>
41 <item> min </item>
42 <item> max </item>
43 <item> fmod </item>
44 <item> remainder </item>
45 <item> floor </item>
46 <item> ceil </item>
47 <item> rint </item>
48 </list>
49
50 <list name="operators">
51 <item> process </item>
52
53 <item> with </item>
54 <item> case </item>
55 <item> seq </item>
56 <item> par </item>
57 <item> sum </item>
58 <item> prod </item>
59 <item> import </item>
60
61 <item> component </item>
62 <item> library </item>
63 <item> environment </item>
64
65 <item> declare </item>
66 </list>
67
68 <contexts>
69 <context attribute="Normal Text" lineEndContext="#stay" name="Normal">
70 <DetectSpaces />
71 <Detect2Chars attribute="BlockDiagram" context="#stay" char="&lt;" char1=":" />
72 <Detect2Chars attribute="BlockDiagram" context="#stay" char=":" char1="&gt;" />
73 <Detect2Chars attribute="BlockDiagram" context="#stay" char="+" char1="&gt;" />
74 <DetectChar attribute="BlockDiagram" context="#stay" char=":" />
75 <DetectChar attribute="BlockDiagram" context="#stay" char="," />
76 <DetectChar attribute="BlockDiagram" context="#stay" char="~" />
77 <DetectChar attribute="BlockDiagram" context="#stay" char=";" />
78 <keyword attribute="BlockDiagram" context="#stay" String="operators" />
79 <keyword attribute="Primitive" context="#stay" String="primitives" />
80 <HlCChar attribute="Char" context="#stay"/>
81 <DetectChar attribute="String" context="String" char="&quot;"/>
82 <DetectIdentifier />
83 <Float attribute="Float" context="#stay">
84 <AnyChar String="fF" attribute="Float" context="#stay"/>
85 </Float>
86 <HlCOct attribute="Octal" context="#stay"/>
87 <HlCHex attribute="Hex" context="#stay"/>
88 <Int attribute="Decimal" context="#stay">
89 <StringDetect attribute="Decimal" context="#stay" String="ULL" insensitive="TRUE"/>
90 <StringDetect attribute="Decimal" context="#stay" String="LUL" insensitive="TRUE"/>
91 <StringDetect attribute="Decimal" context="#stay" String="LLU" insensitive="TRUE"/>
92 <StringDetect attribute="Decimal" context="#stay" String="UL" insensitive="TRUE"/>
93 <StringDetect attribute="Decimal" context="#stay" String="LU" insensitive="TRUE"/>
94 <StringDetect attribute="Decimal" context="#stay" String="LL" insensitive="TRUE"/>
95 <StringDetect attribute="Decimal" context="#stay" String="U" insensitive="TRUE"/>
96 <StringDetect attribute="Decimal" context="#stay" String="L" insensitive="TRUE"/>
97 </Int>
98 <IncludeRules context="##Doxygen" />
99 <Detect2Chars attribute="Comment" context="Commentar 1" char="/" char1="/"/>
100 <Detect2Chars attribute="Comment" context="Commentar 2" char="/" char1="*" beginRegion="Comment"/>
101 <DetectChar attribute="Symbol" context="#stay" char="{" beginRegion="Brace1" />
102 <DetectChar attribute="Symbol" context="#stay" char="}" endRegion="Brace1" />
103 <AnyChar attribute="Symbol" context="#stay" String=":!%&amp;()+,-/.*&lt;=&gt;?[]{|}~^&#59;"/>
104 </context>
105 <context attribute="String" lineEndContext="#pop" name="String">
106 <LineContinue attribute="String" context="#stay"/>
107 <HlCStringChar attribute="String Char" context="#stay"/>
108 <DetectChar attribute="String" context="#pop" char="&quot;"/>
109 </context>
110 <context attribute="Region Marker" lineEndContext="#pop" name="Region Marker">
111 </context>
112 <context attribute="Comment" lineEndContext="#pop" name="Commentar 1">
113 <DetectSpaces />
114 <IncludeRules context="##Alerts" />
115 <DetectIdentifier />
116 </context>
117 <context attribute="Comment" lineEndContext="#stay" name="Commentar 2">
118 <DetectSpaces />
119 <Detect2Chars attribute="Comment" context="#pop" char="*" char1="/" endRegion="Comment"/>
120 <IncludeRules context="##Alerts" />
121 <DetectIdentifier />
122 </context>
123 <context attribute="Preprocessor" lineEndContext="#pop" name="Preprocessor">
124 <LineContinue attribute="Preprocessor" context="#stay"/>
125 <RegExpr attribute="Preprocessor" context="Define" String="define.*((?=\\))"/>
126 <RegExpr attribute="Preprocessor" context="#stay" String="define.*"/>
127 <RangeDetect attribute="Prep. Lib" context="#stay" char="&quot;" char1="&quot;"/>
128 <RangeDetect attribute="Prep. Lib" context="#stay" char="&lt;" char1="&gt;"/>
129 <IncludeRules context="##Doxygen" />
130 <Detect2Chars attribute="Comment" context="Commentar 1" char="/" char1="/"/>
131 <Detect2Chars attribute="Comment" context="Commentar/Preprocessor" char="/" char1="*"/>
132 </context>
133 <context attribute="Preprocessor" lineEndContext="#pop" name="Define">
134 <LineContinue attribute="Preprocessor" context="#stay"/>
135 </context>
136 <context attribute="Comment" lineEndContext="#stay" name="Commentar/Preprocessor">
137 <DetectSpaces />
138 <Detect2Chars attribute="Comment" context="#pop" char="*" char1="/" />
139 <DetectIdentifier />
140 </context>
141 <context attribute="Comment" lineEndContext="#stay" name="Outscoped" >
142 <DetectSpaces />
143 <Detect2Chars attribute="Comment" context="Commentar 2" char="/" char1="*" beginRegion="Comment"/>
144 <IncludeRules context="##Alerts" />
145 <DetectIdentifier />
146 <RegExpr attribute="Comment" context="Outscoped intern" String="#\s*if" beginRegion="Outscoped" firstNonSpace="true" />
147 <RegExpr attribute="Preprocessor" context="#pop" String="#\s*(endif|else|elif)" endRegion="Outscoped" firstNonSpace="true" />
148 </context>
149 <context attribute="Comment" lineEndContext="#stay" name="Outscoped intern">
150 <DetectSpaces />
151 <Detect2Chars attribute="Comment" context="Commentar 2" char="/" char1="*" beginRegion="Comment"/>
152 <RegExpr attribute="Comment" context="Outscoped intern" String="#\s*if" beginRegion="Outscoped" firstNonSpace="true"/>
153 <RegExpr attribute="Comment" context="#pop" String="#\s*endif" endRegion="Outscoped" firstNonSpace="true"/>
154 </context>
155 </contexts>
156 <itemDatas>
157 <itemData name="Normal Text" defStyleNum="dsNormal"/>
158 <itemData name="BlockDiagram" defStyleNum="dsKeyword"/>
159 <itemData name="Primitive" defStyleNum="dsKeyword" color="#A07832"/>
160 <itemData name="Data Type" defStyleNum="dsDataType"/>
161 <itemData name="Decimal" defStyleNum="dsDecVal"/>
162 <itemData name="Octal" defStyleNum="dsBaseN"/>
163 <itemData name="Hex" defStyleNum="dsBaseN"/>
164 <itemData name="Float" defStyleNum="dsFloat"/>
165 <itemData name="Char" defStyleNum="dsChar"/>
166 <itemData name="String" defStyleNum="dsString"/>
167 <itemData name="String Char" defStyleNum="dsChar"/>
168 <itemData name="Comment" defStyleNum="dsComment"/>
169 <itemData name="Symbol" defStyleNum="dsNormal"/>
170 <itemData name="Preprocessor" defStyleNum="dsOthers"/>
171 <itemData name="Prep. Lib" defStyleNum="dsOthers"/>
172 <itemData name="Region Marker" defStyleNum="dsRegionMarker" />
173 </itemDatas>
174 </highlighting>
175 <general>
176 <comments>
177 <comment name="singleLine" start="//" />
178 <comment name="multiLine" start="/*" end="*/" region="Comment"/>
179 </comments>
180 <keywords casesensitive="1" />
181 </general>
182 </language>