]> git.r.bdr.sh - rbdr/dotfiles/blame_incremental - vim/syntax/conque_term.vim
Update provisioning
[rbdr/dotfiles] / vim / syntax / conque_term.vim
... / ...
CommitLineData
1
2" *******************************************************************************************************************
3" MySQL *************************************************************************************************************
4" *******************************************************************************************************************
5
6syn match MySQLTableHead "^ *|.*| *$" nextgroup=MySQLTableDivide contains=MySQLTableBar oneline skipwhite skipnl
7syn match MySQLTableBody "^ *|.*| *$" nextgroup=MySQLTableBody,MySQLTableEnd contains=MySQLTableBar,MySQLNull,MySQLBool,MySQLNumber,MySQLStorageClass oneline skipwhite skipnl
8syn match MySQLTableEnd "^ *+[+=-]\++ *$" oneline
9syn match MySQLTableDivide "^ *+[+=-]\++ *$" nextgroup=MySQLTableBody oneline skipwhite skipnl
10syn match MySQLTableStart "^ *+[+=-]\++ *$" nextgroup=MySQLTableHead oneline skipwhite skipnl
11syn match MySQLNull " NULL " contained contains=MySQLTableBar
12syn match MySQLStorageClass " PRI " contained
13syn match MySQLStorageClass " MUL " contained
14syn match MySQLStorageClass " UNI " contained
15syn match MySQLStorageClass " CURRENT_TIMESTAMP " contained
16syn match MySQLStorageClass " auto_increment " contained
17syn match MySQLTableBar "|" contained
18syn match MySQLNumber "|\? *\d\+ *|" contained contains=MySQLTableBar
19syn match MySQLQueryStat "^\d\+ rows\? in set.*" oneline
20syn match MySQLPromptLine "^.\?mysql> .*$" contains=MySQLKeyword,MySQLPrompt,MySQLString oneline
21syn match MySQLPromptLine "^ -> .*$" contains=MySQLKeyword,MySQLPrompt,MySQLString oneline
22syn match MySQLPrompt "^.\?mysql>" contained oneline
23syn match MySQLPrompt "^ ->" contained oneline
24syn case ignore
25syn keyword MySQLKeyword select count max sum avg date show table tables status like as from left right outer inner join contained
26syn keyword MySQLKeyword where group by having limit offset order desc asc show contained
27syn case match
28syn region MySQLString start=+'+ end=+'+ skip=+\\'+ contained oneline
29syn region MySQLString start=+"+ end=+"+ skip=+\\"+ contained oneline
30syn region MySQLString start=+`+ end=+`+ skip=+\\`+ contained oneline
31
32hi def link MySQLPrompt Identifier
33hi def link MySQLTableHead Title
34hi def link MySQLTableBody Normal
35hi def link MySQLBool Boolean
36hi def link MySQLStorageClass StorageClass
37hi def link MySQLNumber Number
38hi def link MySQLKeyword Keyword
39hi def link MySQLString String
40
41" terms which have no reasonable default highlight group to link to
42hi MySQLTableHead term=bold cterm=bold gui=bold
43if &background == 'dark'
44 hi MySQLTableEnd term=NONE cterm=NONE gui=NONE ctermfg=238 guifg=#444444
45 hi MySQLTableDivide term=NONE cterm=NONE gui=NONE ctermfg=238 guifg=#444444
46 hi MySQLTableStart term=NONE cterm=NONE gui=NONE ctermfg=238 guifg=#444444
47 hi MySQLTableBar term=NONE cterm=NONE gui=NONE ctermfg=238 guifg=#444444
48 hi MySQLNull term=NONE cterm=NONE gui=NONE ctermfg=238 guifg=#444444
49 hi MySQLQueryStat term=NONE cterm=NONE gui=NONE ctermfg=238 guifg=#444444
50elseif &background == 'light'
51 hi MySQLTableEnd term=NONE cterm=NONE gui=NONE ctermfg=247 guifg=#9e9e9e
52 hi MySQLTableDivide term=NONE cterm=NONE gui=NONE ctermfg=247 guifg=#9e9e9e
53 hi MySQLTableStart term=NONE cterm=NONE gui=NONE ctermfg=247 guifg=#9e9e9e
54 hi MySQLTableBar term=NONE cterm=NONE gui=NONE ctermfg=247 guifg=#9e9e9e
55 hi MySQLNull term=NONE cterm=NONE gui=NONE ctermfg=247 guifg=#9e9e9e
56 hi MySQLQueryStat term=NONE cterm=NONE gui=NONE ctermfg=247 guifg=#9e9e9e
57endif
58
59
60" *******************************************************************************************************************
61" Bash **************************************************************************************************************
62" *******************************************************************************************************************
63
64" Typical Prompt
65silent execute "syn match ConquePromptLine '" . g:ConqueTerm_PromptRegex . ".*$' contains=ConquePrompt,ConqueString oneline"
66silent execute "syn match ConquePrompt '" . g:ConqueTerm_PromptRegex . "' contained oneline"
67hi def link ConquePrompt Identifier
68
69" Strings
70syn region ConqueString start=+'+ end=+'+ skip=+\\'+ contained oneline
71syn region ConqueString start=+"+ end=+"+ skip=+\\"+ contained oneline
72syn region ConqueString start=+`+ end=+`+ skip=+\\`+ contained oneline
73hi def link ConqueString String
74
75" vim: foldmethod=marker