diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2014-11-23 21:02:49 +0200 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2014-11-23 21:02:49 +0200 |
commit | b8a86bda2f9477ccc21f190f43c2be7e4a98d705 (patch) | |
tree | 9abf7cd2314f0fb3ae535b926190d7f4c20dd0b0 /data | |
parent | 417f1d73a2d1ff1fe4cdf0774e5eb202910b7021 (diff) | |
download | meson-b8a86bda2f9477ccc21f190f43c2be7e4a98d705.zip meson-b8a86bda2f9477ccc21f190f43c2be7e4a98d705.tar.gz meson-b8a86bda2f9477ccc21f190f43c2be7e4a98d705.tar.bz2 |
Start work on gtksourceview syntax highlighting file.
Diffstat (limited to 'data')
-rw-r--r-- | data/meson.lang | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/data/meson.lang b/data/meson.lang new file mode 100644 index 0000000..7c5a0e0 --- /dev/null +++ b/data/meson.lang @@ -0,0 +1,37 @@ +<?xml version="1.0" encoding="UTF-8"?> + +<language id="meson" _name="Meson" version="2.0" _section="Source"> + <metadata> + <property name="globs">meson.build</property> + </metadata> + + <styles> + <style id="comment" _name="Comment" map-to="def:comment" /> + <style id="string" _name="String" map-to="def:string" /> + <style id="keyword" _name="Keyword" map-to="def:keyword" /> + </styles> + + <definitions> + <context id="meson"> + <include> + <context id="string" end-at-line-end="true" style-ref="def:string"> + <start>'</start> + <end>'</end> + </context> + + <context id="comment" style-ref="def:comment"> + <start>#</start> + <end>$</end> + </context> + + <context id="keywords" style-ref="keyword"> + <keyword>if</keyword> + <keyword>endif</keyword> + <keyword>foreach</keyword> + <keyword>endforeach</keyword> + </context> + </include> + + </context> + </definitions> +</language> |