aboutsummaryrefslogtreecommitdiff
path: root/support/vim/syntax
diff options
context:
space:
mode:
Diffstat (limited to 'support/vim/syntax')
-rw-r--r--support/vim/syntax/gatstxt.vim38
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
8if version < 600
9 syntax clear
10elseif exists("b:current_syntax")
11 finish
12endif
13
14
15sy region Group start=+{+ end=+}+ fold
16sy region List start=+[[]+ end=+]+ fold
17
18sy match Int +[1-9][0-9]*[if]\?+
19sy match Flt +[0-9]*\.[0-9]*[if]\?+
20
21
22sy region Str start=+"+ skip=+\\"+ end=+"+
23sy keyword Bool true
24sy keyword Bool false
25sy keyword Null null
26
27sy match Ops '[{[:}\],]'
28
29" sy region Comment start=+//+ end=+$+
30" sy region Comment start=+/\*+ end=+\*/+
31
32
33hi def link Ops Operator
34hi def link Str String
35hi def link Bool Keyword
36hi def link Null Keyword
37hi def link Int Number
38hi def link Flt Float