From 0f94203abb554a083460b44d38360628ae248dc2 Mon Sep 17 00:00:00 2001 From: Price Hiller Date: Thu, 2 Nov 2023 14:02:08 -0500 Subject: [PATCH] refactor(nvim): allow trailing whitespace on tables --- dots/.config/nvim/syntax/org.vim | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dots/.config/nvim/syntax/org.vim b/dots/.config/nvim/syntax/org.vim index 711e2990..bab20775 100644 --- a/dots/.config/nvim/syntax/org.vim +++ b/dots/.config/nvim/syntax/org.vim @@ -1,5 +1,5 @@ syn match org_table_sep /\(|\|\(-\|=\)\|+\)/ contained syn match org_table_header /|.*|/ contained contains=org_table_sep -syn match org_table_header_region /|.*|\_s*|\_s*\(-+\|\-\|=\).*|$/ contained contains=org_table_header -syn match org_table /|.*|$/ contained contains=org_table_sep,org_table_header_region -syn match org_table_region /^\s*|.*|$/ contains=org_table +syn match org_table_header_region /|.*|\_s*|\_s*\(-+\|\-\|=\).*|\_s*$/ contained contains=org_table_header +syn match org_table /|.*|\_s*$/ contained contains=org_table_sep,org_table_header_region +syn match org_table_region /^\s*|.*|\_s*$/ contains=org_table