diff options
| author | Riley Bruins <ribru17@hotmail.com> | 2025-04-12 15:51:29 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-04-12 15:51:29 -0700 |
| commit | 60af1a1db285e1cf2b73d1e5934b044b697287f1 (patch) | |
| tree | 92409d723acc27fb91804823f9749e30da393721 /runtime/lua/vim/_ftplugin | |
| parent | b8763cb21525b026de4a39b508de07d57cac6faa (diff) | |
| download | rneovim-60af1a1db285e1cf2b73d1e5934b044b697287f1.tar.gz rneovim-60af1a1db285e1cf2b73d1e5934b044b697287f1.tar.bz2 rneovim-60af1a1db285e1cf2b73d1e5934b044b697287f1.zip | |
fix(treesitter): clear parse options state #33437
Apparently after parsing with options in tree-sitter, the options data
persists in the parser object, and thus successive calls to
`ts_parser_parse()` will act like `ts_parser_parse_with_options()`. This
is problematic because `languagetree.lua` makes coroutine-environment
assumptions based on if a nullptr has been returned by the parser
function. This commit makes it so that the parse options state is reset
upon a regular parse (would be nice if this was done upstream).
Fixes #33277
Diffstat (limited to 'runtime/lua/vim/_ftplugin')
0 files changed, 0 insertions, 0 deletions