tree-sitter-vimdoc
tree-sitter-vimdoc copied to clipboard
[optional] argument
Note: do a release before merging this
- Parse
[foo]asoptional~~optional_arg~~ (naming suggestions?) - Don't treat
[{arg}]as optional, else it clobbers the nested{arg}.
fix #1
Todo
- ✅ Will need to work through similar issues as for
{argument}. These examples cause errors:nvim_buf_changedtick_event[{buf},] A list of [text, hl_group] arrays to change) ["win", winid, bufnr, row]- ✅ Fixed by defined
optionalas a regex instead of using_word().
- ✅ Fixed by defined