aboutsummaryrefslogtreecommitdiff
path: root/support/vim/syntax/gatstxt.vim
blob: 931963666bc350e997507cea7928fce552b424cd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
" Vim syntax file
" Language:	GatsTxt
" Maintainer:	None :)
" Last Change:	2013 Feb 10

" For version 5.x: Clear all syntax items
" For version 6.x: Quit when a syntax file was already loaded
if version < 600
  syntax clear
elseif exists("b:current_syntax")
  finish
endif


sy region Group start=+{+ end=+}+ fold
sy region List start=+[[]+ end=+]+ fold

sy match Int +[1-9][0-9]*[if]\?+
sy match Flt +[0-9]*\.[0-9]*[if]\?+


sy region Str start=+"+ skip=+\\"+ end=+"+
sy keyword Bool true
sy keyword Bool false
sy keyword Null null

sy match Ops '[{[:}\],]'

sy region Comment start=+//+ end=+$+
sy region Comment start=+/\*+ end=+\*/+

hi def link Ops Operator
hi def link Str String
hi def link Bool Keyword
hi def link Null Keyword
hi def link Int Number
hi def link Flt Float