mirror of
https://github.com/dhruvasagar/vim-table-mode.git
synced 2025-11-08 11:03:47 -05:00
Updated Table syntax to incorporate commented tables
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user