From 7258a56d20c7d4c1d2d0a80eb60c35758ddb4493 Mon Sep 17 00:00:00 2001 From: Dhruva Sagar Date: Sun, 4 May 2014 10:13:40 +0530 Subject: [PATCH] Updated Table syntax to incorporate commented tables --- plugin/table-mode.vim | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugin/table-mode.vim b/plugin/table-mode.vim index 0d7379e..e30f3a6 100644 --- a/plugin/table-mode.vim +++ b/plugin/table-mode.vim @@ -51,7 +51,9 @@ function! s:TableEchoCell() "{{{1 endfunction 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 TableColumnAlign /:/ contained syntax match TableBorder /[\-+]\+/ contained