neovim / tree-sitter-vimdoc

Tree-sitter parser for Vim help files
Apache License 2.0
103 stars 13 forks source link

fix(headings): error if line starts with uppercase #24

Closed justinmk closed 2 years ago

justinmk commented 2 years ago

Problem: Plaintext lines starting with uppercase word(s) are flagged as (h3) ERROR.

Solution: Tell the grammar explicitly that uppercase words are allowed at the start of a plaintext (line), this does not necessarily mean the line is an invalid (h3) heading.