diff options
author | Mike Buland <eichlan@xagasoft.com> | 2013-02-10 21:57:18 +0000 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2013-02-10 21:57:18 +0000 |
commit | 0cce7a054ba818227494f4e48c129dde2cfc0e45 (patch) | |
tree | a57c0272babf5967b37b28f612c418463033de29 /support/vim/syntax/gatstxt.vim | |
parent | 1538ef47d1d4cc08e5f9c5894350bfa225866d40 (diff) | |
download | libgats-0cce7a054ba818227494f4e48c129dde2cfc0e45.tar.gz libgats-0cce7a054ba818227494f4e48c129dde2cfc0e45.tar.bz2 libgats-0cce7a054ba818227494f4e48c129dde2cfc0e45.tar.xz libgats-0cce7a054ba818227494f4e48c129dde2cfc0e45.zip |
Added vim syntax highlighting for gatstxt format.
Diffstat (limited to 'support/vim/syntax/gatstxt.vim')
-rw-r--r-- | support/vim/syntax/gatstxt.vim | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/support/vim/syntax/gatstxt.vim b/support/vim/syntax/gatstxt.vim new file mode 100644 index 0000000..6722e8a --- /dev/null +++ b/support/vim/syntax/gatstxt.vim | |||
@@ -0,0 +1,38 @@ | |||
1 | " Vim syntax file | ||
2 | " Language: GatsTxt | ||
3 | " Maintainer: None :) | ||
4 | " Last Change: 2013 Feb 10 | ||
5 | |||
6 | " For version 5.x: Clear all syntax items | ||
7 | " For version 6.x: Quit when a syntax file was already loaded | ||
8 | if version < 600 | ||
9 | syntax clear | ||
10 | elseif exists("b:current_syntax") | ||
11 | finish | ||
12 | endif | ||
13 | |||
14 | |||
15 | sy region Group start=+{+ end=+}+ fold | ||
16 | sy region List start=+[[]+ end=+]+ fold | ||
17 | |||
18 | sy match Int +[1-9][0-9]*[if]\?+ | ||
19 | sy match Flt +[0-9]*\.[0-9]*[if]\?+ | ||
20 | |||
21 | |||
22 | sy region Str start=+"+ skip=+\\"+ end=+"+ | ||
23 | sy keyword Bool true | ||
24 | sy keyword Bool false | ||
25 | sy keyword Null null | ||
26 | |||
27 | sy match Ops '[{[:}\],]' | ||
28 | |||
29 | " sy region Comment start=+//+ end=+$+ | ||
30 | " sy region Comment start=+/\*+ end=+\*/+ | ||
31 | |||
32 | |||
33 | hi def link Ops Operator | ||
34 | hi def link Str String | ||
35 | hi def link Bool Keyword | ||
36 | hi def link Null Keyword | ||
37 | hi def link Int Number | ||
38 | hi def link Flt Float | ||