Solution:
Remove explicit whitespace patterns from the related $.word patterns. This
also fixes https://github.com/neovim/tree-sitter-vimdoc/issues/23 because it
turns out that defining a $.word choice that captures (leading) whitespace causes
treesitter to include whitespace in all/most nodes in the tree?
Problem:
'
causes errors, it should be plaintext|
causes errors, it should be plaintextSolution: Remove explicit whitespace patterns from the related
$.word
patterns. This also fixes https://github.com/neovim/tree-sitter-vimdoc/issues/23 because it turns out that defining a$.word
choice that captures (leading) whitespace causes treesitter to include whitespace in all/most nodes in the tree?