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
"\"" - string containing a double quote
'"' - string containing a double quote
"\n" - string containing a newline character
'\n' - string containing a backslash followed
by the character n
Maybe the fix is simply to remove this block? (but I don't know what I'm doing in treesitter, don't take my word for it).
While I'm here, I see that in your highlights query you use @string.escape for all sorts of things that aren't string escapes; whereas most of the neovim highlighters use it for an escape sequence - which this parser doesn't expose at all... Seems a bit back-to-front?
The text was updated successfully, but these errors were encountered:
Hi, saw this appear in nvim-treesitter and took it for a spin.
Looks pretty good! But here's a small bug for you: single-quoted strings don't contain escape sequences.
eg see the examples at https://datatracker.ietf.org/doc/html/rfc7950#section-6.1.3.1
Maybe the fix is simply to remove this block? (but I don't know what I'm doing in treesitter, don't take my word for it).
While I'm here, I see that in your highlights query you use
@string.escape
for all sorts of things that aren't string escapes; whereas most of the neovim highlighters use it for an escape sequence - which this parser doesn't expose at all... Seems a bit back-to-front?The text was updated successfully, but these errors were encountered: