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
The label name is valid, but the parser reports an error. When auto-formatting, the formatter inserts a colon after the underscore, which seems to indicate it thinks the label ends after the underscore but before the \1.
It seems any label name containing some characters, then a macro parameter, then an underscore, then another macro parameter, causes the parser error.
More tests/examples on label names:
something\1_\2 errors.
\1\1_\2 errors.
\1_\2 does not error.
The text was updated successfully, but these errors were encountered:
grahambates
added a commit
to grahambates/tree-sitter-m68k
that referenced
this issue
Jun 27, 2024
In this code snippet:
The label name is valid, but the parser reports an error. When auto-formatting, the formatter inserts a colon after the underscore, which seems to indicate it thinks the label ends after the underscore but before the
\1
.It seems any label name containing some characters, then a macro parameter, then an underscore, then another macro parameter, causes the parser error.
More tests/examples on label names:
something\1_\2
errors.\1\1_\2
errors.\1_\2
does not error.The text was updated successfully, but these errors were encountered: