JuliaLang / JuliaSyntax.jl

The Julia compiler frontend
Other
272 stars 35 forks source link

Fix bug parsing unary subtypes with newlines #393

Closed c42f closed 10 months ago

c42f commented 10 months ago

In expressions like "a +\n\n<:" the presence of peek(ps, skip_newlines=true) was inconsistent with the use of bump() without skip_newlines. It seems that we didn't need skip_newlines at all in parse_unary_subtype, so do this to be consistent with parsing of other operators.

Fix #392

codecov[bot] commented 10 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (a6b94d2) 96.58% compared to head (c2ca143) 96.58%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #393 +/- ## ======================================= Coverage 96.58% 96.58% ======================================= Files 14 14 Lines 4187 4187 ======================================= Hits 4044 4044 Misses 143 143 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.