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
Code generator should avoid '0x1a' literals in source code because (I believe) standard IO libs for windows in non-binary mode interpret '0x1a' as EOF regardless of where it shows up, which causes compilation to fail.
1704] if (lookahead == '<0x19>') ADVANCE(39);
1705] if (lookahead == '<0x1a>') ADVANCE(40);
1706] if (lookahead == '<0x1b>') ADVANCE(41);
Converting to integer literal works around the problem.
1704] if (lookahead == '<0x19>') ADVANCE(39);
1705] if (lookahead == 26) ADVANCE(40);
1706] if (lookahead == '<0x1b>') ADVANCE(41);
To automate, I needed to implement a post-processor after "tree-sitter generate". I know this is not a problem on Linux, and I'm not a Windows guy, but this is a defect and should probably be fixed at some point when convenient for the maintainers.
The text was updated successfully, but these errors were encountered:
Code generator should avoid '0x1a' literals in source code because (I believe) standard IO libs for windows in non-binary mode interpret '0x1a' as EOF regardless of where it shows up, which causes compilation to fail.
Converting to integer literal works around the problem.
To automate, I needed to implement a post-processor after "tree-sitter generate". I know this is not a problem on Linux, and I'm not a Windows guy, but this is a defect and should probably be fixed at some point when convenient for the maintainers.
The text was updated successfully, but these errors were encountered: