Skip to content

Report syntax error for unexpected character in gstring#7353

Open
bentsherman wants to merge 1 commit into
masterfrom
gh-6883-gstring-unexpected-char
Open

Report syntax error for unexpected character in gstring#7353
bentsherman wants to merge 1 commit into
masterfrom
gh-6883-gstring-unexpected-char

Conversation

@bentsherman

Copy link
Copy Markdown
Member

Fix #6883

Long ago, I simplified the lexer rules for GStrings to remove a hack inherited from the Groovy grammar. However, that caused certain syntax errors to not be caught, leading to weird runtime behavior

This PR adds the lexer rules necessary to complete the GString handling, so that cases like "$/" are reported as invalid syntax rather than leading to silently incorrect behavior

Signed-off-by: Ben Sherman <bentshermann@gmail.com>
@bentsherman
bentsherman requested a review from jorgee July 16, 2026 23:10
@bentsherman
bentsherman requested a review from a team as a code owner July 16, 2026 23:10
@netlify

netlify Bot commented Jul 16, 2026

Copy link
Copy Markdown

Deploy Preview for nextflow-docs canceled.

Name Link
🔨 Latest commit c5f6b9f
🔍 Latest deploy log https://app.netlify.com/projects/nextflow-docs/deploys/6a5964cee1e0e70008dd1f12

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.

$/ in scripts shifts the inputs to the right

1 participant