neovim / tree-sitter-vimdoc

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

h3 uppercase_name does not recognize "A AA" as a headline #98

Open justinmk opened 1 year ago

justinmk commented 1 year ago

Problem

reported by @ychin https://github.com/neovim/neovim/pull/20690#issuecomment-1458796967 :

minor bug in the tree-sitter parser logic where a single character (e.g. "A" in "STARTING MACVIM FROM A TERMINAL") does not count as a headline. ... grammar.json ... requires two or more characters: [A-Z0-9.()][-A-Z0-9.()_]+.