refactor(nvim): allow trailing whitespace on tables

This commit is contained in:
Price Hiller 2023-11-02 14:02:08 -05:00
parent 8a65153fba
commit 0f94203abb
Signed by: Price
SSH Key Fingerprint: SHA256:Y4S9ZzYphRn1W1kbJerJFO6GGsfu9O70VaBSxJO7dF8

View File

@ -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