fix(regex): some words start with no

This commit is contained in:
Jonas DOREL
2021-10-05 20:20:57 +02:00
parent e5dc853ee3
commit 59900a3fef

View File

@@ -83,7 +83,7 @@ function! s:ToggleSyntax() "{{{2
if exists("g:table_mode_color_cells") && g:table_mode_color_cells if exists("g:table_mode_color_cells") && g:table_mode_color_cells
syntax match yesCell '|\@<= *yes[^|]*' contained syntax match yesCell '|\@<= *yes[^|]*' contained
syntax match noCell '|\@<= *no[^|]*' contained syntax match noCell '|\@<= *no\A[^|]*' contained " \A to exclude words like notes
syntax match maybeCell '|\@<= *?[^|]*' contained syntax match maybeCell '|\@<= *?[^|]*' contained
" '|\@<=' : Match previous characters, excluding them from the group " '|\@<=' : Match previous characters, excluding them from the group
endif endif