Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
feat: executor tool invocation for js-exec #171
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Uh oh!
There was an error while loading. Please reload this page.
feat: executor tool invocation for js-exec #171
Changes from 1 commit
86e91b7d0f6f515b91170526260b618332dab2b3c03bbcc603b21f757da7d643f5ac4b37c4fa4f34750dfd1612cFile filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
The awk lexer emitted a NEWLINE token unconditionally when it saw `\n`, even when the previous token was one of the continuation-allowing tokens POSIX awk specifies (`,`, `{`, `&&`, `||`, `?`, `:`, `do`, `else`, `if`, `while`). Common multi-line idioms like printf "%s=%d\n", $1, $2 (comma at end-of-line followed by indented args on the next line) parsed as two separate statements with a stray NEWLINE in the middle, surfacing as "Unexpected token: NEWLINE" — even though gawk, mawk, and the BSD one-true-awk all accept this form. The lexer already tracks `lastTokenType` as an instance property, so the fix is a small inject in `nextToken`: when the next character is `\n` and `lastTokenType` is in `CONTINUES_ACROSS_NEWLINE`, swallow the newline and recurse to the next real token instead of emitting one. Adds eight regression tests covering each continuation-allowing token plus the TSV → SQL INSERT printf idiom that motivated the fix.Uh oh!
There was an error while loading. Please reload this page.
There are no files selected for viewing