fix(highlight): disable highlight when word before

This commit is contained in:
Jonas DOREL
2021-10-05 17:29:47 +02:00
parent c949912bfa
commit e5dc853ee3

View File

@@ -82,9 +82,10 @@ function! s:ToggleSyntax() "{{{2
hi! link TableColumnAlign Type
if exists("g:table_mode_color_cells") && g:table_mode_color_cells
syntax match yesCell '[^|]*yes[^|]*'
syntax match noCell ' *no[^|]*'
syntax match maybeCell ' *?[^|]*'
syntax match yesCell '|\@<= *yes[^|]*' contained
syntax match noCell '|\@<= *no[^|]*' contained
syntax match maybeCell '|\@<= *?[^|]*' contained
" '|\@<=' : Match previous characters, excluding them from the group
endif
else