When using the syntax highlighting hints from R treesitter, some (but not all!) Unicode escape sequences inside string literals are parsed incorrectly and cause all subsequent lexemes to be classified incorrectly.
I’m unsure which combination exactly causes this behaviour; in the example below, removing either \u02 or \uf101 rectifies the behaviour. The combination of both is required to trigger the bug.
(Screenshot taken in NeoVim v0.9.1. Without r-tree-sitter, the literal is highlighted correctly.)
Actual behaviour
When using the syntax highlighting hints from R treesitter, some (but not all!) Unicode escape sequences inside string literals are parsed incorrectly and cause all subsequent lexemes to be classified incorrectly.
I’m unsure which combination exactly causes this behaviour; in the example below, removing either
\u02
or\uf101
rectifies the behaviour. The combination of both is required to trigger the bug.(Screenshot taken in NeoVim v0.9.1. Without r-tree-sitter, the literal is highlighted correctly.)
Expected behaviour