-
Notifications
You must be signed in to change notification settings - Fork 1
/
sqlfirebird_tail
50 lines (37 loc) · 1.19 KB
/
sqlfirebird_tail
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
38
39
40
41
42
43
44
45
46
47
48
49
" Strings and characters:
syn region sqlString start=+"+ end=+"+
syn region sqlString start=+'+ end=+'+
" Numbers:
syn match sqlNumber "-\=\<\d*\.\=[0-9_]\>"
" Comments:
syn region sqlComment start="/\*" end="\*/" contains=sqlTodo
syn match sqlComment "--.*$" contains=sqlTodo
syn sync ccomment sqlComment
" Todo.
syn keyword sqlTodo contained TODO FIXME XXX DEBUG NOTE
" Define the default highlighting.
" For version 5.7 and earlier: only when not done already
" For version 5.8 and later: only when an item doesn't have highlighting yet
if version >= 508 || !exists("did_sql_syn_inits")
if version < 508
let did_sql_syn_inits = 1
command -nargs=+ HiLink hi link <args>
else
command -nargs=+ HiLink hi def link <args>
endif
HiLink sqlKeyword sqlSpecial
HiLink sqlOperator sqlStatement
HiLink sqlSpecial Special
HiLink sqlFunction Function
HiLink sqlStatement Statement
HiLink sqlObject Identifier
HiLink sqlType Type
HiLink sqlTypeMod Type
HiLink sqlConst Constant
HiLink sqlString String
HiLink sqlNumber Number
HiLink sqlComment Comment
HiLink sqlTodo Todo
delcommand HiLink
endif
let b:current_syntax = "sql"