much love
[mu.git] / editor / subx.gedit
blob45ef133771a4c32fa017d6d8035337aaf8fb45df
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!-- copy this file somewhere like ~/.local/share/gtksourceview-3.0/language-specs/subx.lang -->
3 <language id="subx" name="SubX" version="2.0" _section="Source">
4 <metadata>
5 <property name="mimetypes">text/x-subx;text/x-subxsrc</property>
6 <property name="globs">*.subx</property>
7 </metadata>
8 <styles>
9 <style id="comment" name="Comment" map-to="def:comment"/>
10 <style id="string" name="String" map-to="def:string"/>
11 <style id="keyword" name="Keyword" map-to="def:keyword"/>
12 </styles>
13 <definitions>
14 <context id="subx">
15 <include>
16 <context id="comment" style-ref="comment">
17 <match>#.*</match>
18 </context>
19 <context id="string" style-ref="string">
20 <match>"[^"]*"</match>
21 </context>
22 <!-- TODO: distinguish functions, globals, tests and internal labels -->
23 <context id="keyword" style-ref="keyword">
24 <match>^[^ ]*:</match>
25 </context>
26 </include>
27 </context>
28 </definitions>
29 </language>