tree-sitter-vim
tree-sitter-vim copied to clipboard
bug: syn keyword support non alphanum characters
Did you check existing issues?
- [x] I have read all the tree-sitter docs if it relates to using the parser
- [x] I have searched the existing issues
Tree-Sitter CLI Version, if relevant (output of tree-sitter --version)
No response
Describe the bug
syn keyword lnkSpecSections .text .bss .cinit .data .data .stack .heap .sysmem .const .switch .init_array .pinit .cio
we can set iskeyword+=.. so syn keyword should support any non-space characters.
Steps To Reproduce/Bad Parse Tree
(ERROR ; [27, 4] - [27, 121]
(hl_group) ; [27, 14] - [27, 29]
(keyword) ; [27, 33] - [27, 37]
(keyword) ; [27, 39] - [27, 42]
(keyword) ; [27, 44] - [27, 49]
(keyword) ; [27, 51] - [27, 55]
(keyword) ; [27, 57] - [27, 61]
(keyword) ; [27, 63] - [27, 68]
(keyword) ; [27, 70] - [27, 74]
(keyword) ; [27, 76] - [27, 82]
(keyword) ; [27, 84] - [27, 89]
(keyword) ; [27, 91] - [27, 97]
(keyword) ; [27, 99] - [27, 109]
(marker_definition)) ; [27, 111] - [27, 121]
Expected Behavior/Parse Tree
No ERROR
Repro
No response