Updated Table syntax to incorporate commented tables

This commit is contained in:
Dhruva Sagar
2014-05-04 10:13:40 +05:30
parent 8d3c4912a2
commit 7258a56d20

View File

@@ -51,7 +51,9 @@ function! s:TableEchoCell() "{{{1
endfunction endfunction
function! s:EnableTableSyntax() "{{{1 function! s:EnableTableSyntax() "{{{1
syntax match Table /^\s*|.\+|\s*$/ contains=TableBorder,TableSeparator,TableColumnAlign containedin=ALL exec 'syntax match Table'
\ '/' . tablemode#table#StartExpr() . '\zs|.\+|\ze' . tablemode#table#EndExpr() . '/'
\ 'contains=TableBorder,TableSeparator,TableColumnAlign containedin=ALL'
syntax match TableSeparator /|/ contained syntax match TableSeparator /|/ contained
syntax match TableColumnAlign /:/ contained syntax match TableColumnAlign /:/ contained
syntax match TableBorder /[\-+]\+/ contained syntax match TableBorder /[\-+]\+/ contained