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
Syntax highlighting for string literal union types fails under multiple circumstances. I first noticed this on Scastie (issue posted here), but also experience it on Zed.
Here is a screenshot of the failing cases I've found so far
// works!typetest1="a"|"b"
// fails after two elementstypetest2="a"|"b"|"c"
// breaks from tokens on next linetypetest3="a"|"b"// like this comment
typetest4="a"|"b"typetest4_="x"|"y"// breaks subsequent lines as well
// fails for parameter typesdeftest5(x: "a"|"b") =???
Commit of tree-sitter-scala you tested this on
45b5ba0
A code sample showing the error
Syntax highlighting for string literal union types fails under multiple circumstances. I first noticed this on Scastie (issue posted here), but also experience it on Zed.
Here is a screenshot of the failing cases I've found so far
Zed version: 0.142.6
Zed Scala extension version: 0.0.3
Show the error node
will add later if I have time to figure out. I am not familiar with how tree-sitters work.
What do you expect the tree to look like
No response
Where are you experiencing this error?
Zed, Scastie
The text was updated successfully, but these errors were encountered: