Skip to content

Ignore braces in action comments - #813

Open
ydah wants to merge 1 commit into
masterfrom
fix/action-comment-braces
Open

ydah wants to merge 1 commit into
masterfrom
fix/action-comment-braces

Conversation

@ydah

@ydah ydah commented Oct 21, 2026

Copy link
Copy Markdown
Member

Lexer#lex_c_code counted braces inside C comments as action delimiters, causing valid actions such as { /* } */ int x; } to fail.

Consume comments and quoted literals as complete units, honoring escaped quotes. Preserve their contents and source locations while keeping braces inside them out of the nesting count.

@ydah
ydah force-pushed the fix/action-comment-braces branch from ab4a105 to 1f7d7e3 Compare October 23, 2026 10:33

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant