Skip to content
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

Also disallow bare generators in interpolation syntax #307

Merged
merged 1 commit into from
Jun 9, 2023

Conversation

c42f
Copy link
Member

@c42f c42f commented Jun 9, 2023

This should be the only other case which needs to be disallowed - the reference parser uses parse_eq_star here and that's also what's used within parse_brackets with , ; and for being the only allowed continuation tokens.

Also refine error recovery a little and add additional tests.

Additional fix for #306

@c42f c42f force-pushed the c42f/string-interpolate-error branch from 7d23151 to 29245bb Compare June 9, 2023 22:09
@codecov
Copy link

codecov bot commented Jun 9, 2023

Codecov Report

Merging #307 (9a6e509) into main (af64b6d) will increase coverage by 0.00%.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##             main     #307   +/-   ##
=======================================
  Coverage   96.80%   96.81%           
=======================================
  Files          14       14           
  Lines        4104     4107    +3     
=======================================
+ Hits         3973     3976    +3     
  Misses        131      131           
Impacted Files Coverage Δ
src/parser.jl 98.33% <100.00%> (+<0.01%) ⬆️

This should be the only other case which needs to be disallowed - the
reference parser uses parse_eq_star here and that's also what's used
within parse_brackets with `,` `;` and `for` being the only allowed
continuation tokens.

Also refine error recovery a little and add additional tests.
@c42f c42f force-pushed the c42f/string-interpolate-error branch from 29245bb to 9a6e509 Compare June 9, 2023 22:15
@c42f c42f merged commit 8a47045 into main Jun 9, 2023
@c42f c42f deleted the c42f/string-interpolate-error branch June 9, 2023 22:31
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