You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If your issue is related to a bug in your editor-experience because your editor leverages tree-sitter and this parser, then it is likely your issue does NOT belong here and belongs in the relevant editor's repository.
The bug
If I create a map with strings as keys, the coloring seems to get confused.
Best shown with a screenshot:
The first line, MOVE_FRONT, is correct. Any subsequent lines look wrong.
Just for reference, this is not just linked to the odin language. This happens also in php and other languages, most of the time if the letter M is involved.
That's unrelated - it's because the k is lowercase so it's not highlighted as a constant. That's up to php's queries in runtime/queries/php/highlights.scm
Summary
Hi, I wasn't exactly sure where to report this, since https://github.com/tree-sitter-grammars/tree-sitter-odin mentioned following:
The bug
If I create a map with strings as keys, the coloring seems to get confused.
Best shown with a screenshot:
The first line,
MOVE_FRONT
, is correct. Any subsequent lines look wrong.Tree-sitter scopes seem to error out?
Reproduction Steps
I tried this:
hx
I expected this to happen:
Syntax highlighting for string would be correct, like on the first line.
Instead, this happened:
Seems helix thinks for some reason that the next line with
MOVE_BACK
with the first"
is not start of string?Helix log
~/.cache/helix/helix.log
Platform
Linux
Terminal Emulator
konsole 24.11.70
Installation Method
fedora packages
Helix Version
helix 24.7 (079f544)
The text was updated successfully, but these errors were encountered: