Skip to content

Fix ANTLR grammar: add catch-all hidden lexer rule to prevent tokeniz…#502

Merged
TeamDman merged 1 commit intoTeamDman:1.19.2from
rayan6ms:1.19.2
Feb 25, 2026
Merged

Fix ANTLR grammar: add catch-all hidden lexer rule to prevent tokeniz…#502
TeamDman merged 1 commit intoTeamDman:1.19.2from
rayan6ms:1.19.2

Conversation

@rayan6ms
Copy link

I've been using the generated antlr files on my editor (Yes, I'm that guy)
And I noticed some mismatched syntax errors when using "back side" or "front side" even though they were in the code. Upon investigating, I noticed that there was some Java code on the platform/visual-studio-code/super-factory-manager-language/syntaxes/SFML.g4 file, and as the target is typescript, I changed it to the correct grammar syntax.
PS: I did not regenerate the antlr files for this PR, to update the extension, you still have to run the antlr command.

@TeamDman TeamDman merged commit 3f58877 into TeamDman:1.19.2 Feb 25, 2026
@TeamDman TeamDman added vscode extension Relating to the SFM VSCode extension language feature Involving the design of the domain-specific language, likely changes to the .g4 ANTLR grammar file labels Feb 25, 2026
@TeamDman TeamDman added this to the v4.30.0 milestone Feb 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

language feature Involving the design of the domain-specific language, likely changes to the .g4 ANTLR grammar file vscode extension Relating to the SFM VSCode extension

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants