From 59900a3feffc632f3fca3abbc64b71d14eed0687 Mon Sep 17 00:00:00 2001 From: Jonas DOREL Date: Tue, 5 Oct 2021 20:20:57 +0200 Subject: [PATCH] fix(regex): some words start with no --- autoload/tablemode.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/tablemode.vim b/autoload/tablemode.vim index b9b26df..8c7d258 100644 --- a/autoload/tablemode.vim +++ b/autoload/tablemode.vim @@ -83,7 +83,7 @@ function! s:ToggleSyntax() "{{{2 if exists("g:table_mode_color_cells") && g:table_mode_color_cells 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 " '|\@<=' : Match previous characters, excluding them from the group endif