JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
don't stop on foldmethod of other buffers
[vim-syntax.git] / csv.vim
1 highlight csv1 ctermfg=darkred
2 highlight csv2 ctermfg=green
3 highlight csv3 ctermfg=blue
4 highlight csv4 ctermfg=yellow
5 highlight csv5 ctermfg=cyan
6 highlight csv6 ctermfg=white
7 highlight quoted1 ctermfg=darkred
8 highlight quoted2 ctermfg=green
9 highlight quoted3 ctermfg=blue
10 highlight quoted4 ctermfg=yellow
11 highlight quoted5 ctermfg=cyan
12 highlight quoted6 ctermfg=white
13
14 syn region quoted1  start="\"" end="\"" contained
15 syn region quoted2  start="\"" end="\"" contained
16 syn region quoted3  start="\"" end="\"" contained
17 syn region quoted4  start="\"" end="\"" contained
18 syn region quoted5  start="\"" end="\"" contained
19 syn region quoted6  start="\"" end="\"" contained
20
21 syn match csv1 /^[^,]*/                 contains=quoted1 nextgroup=csv2
22 syn match csv2 /,[^,]*/hs=s+1 contained contains=quoted2 nextgroup=csv3
23 syn match csv3 /,[^,]*/hs=s+1 contained contains=quoted3 nextgroup=csv4
24 syn match csv4 /,[^,]*/hs=s+1 contained contains=quoted4 nextgroup=csv5
25 syn match csv5 /,[^,]*/hs=s+1 contained contains=quoted5 nextgroup=csv6
26 syn match csv6 /,[^,]*/hs=s+1 contained contains=quoted6 nextgroup=csv2
27