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
I have read all the tree-sitter docs if it relates to using the parser
I have searched the existing issues of tree-sitter-cpp
Tree-Sitter CLI Version, if relevant (output of tree-sitter --version)
No response
Describe the bug
When parsing __asm, which is required as an alternative to asm and __asm__ by MSVC and supported by Clang, the parser fails to recognize this is a gnu_asm_expression node. This appears to be because __asm is not listed in the node-types.json file.
Steps To Reproduce/Bad Parse Tree
Parse either asm(""); or register int r asm("rax");, and compare to __asm(""); and register int r __asm("rax");.
Did you check existing issues?
Tree-Sitter CLI Version, if relevant (output of
tree-sitter --version
)No response
Describe the bug
When parsing
__asm
, which is required as an alternative toasm
and__asm__
by MSVC and supported by Clang, the parser fails to recognize this is agnu_asm_expression
node. This appears to be because__asm
is not listed in thenode-types.json
file.Steps To Reproduce/Bad Parse Tree
Parse either
asm("");
orregister int r asm("rax");
, and compare to__asm("");
andregister int r __asm("rax");
.Expected Behavior/Parse Tree
Repro
The text was updated successfully, but these errors were encountered: