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">
5 <property name=
"mimetypes">text/x-subx;text/x-subxsrc
</property>
6 <property name=
"globs">*.subx
</property>
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"/>
16 <context id=
"comment" style-ref=
"comment">
19 <context id=
"string" style-ref=
"string">
20 <match>"[^"]*
"</match>
22 <!-- TODO: distinguish functions, globals, tests and internal labels -->
23 <context id="keyword
" style-ref="keyword
">
24 <match>^[^ ]*:</match>