JuliaLang / JuliaSyntax.jl

The Julia compiler frontend
Other
274 stars 33 forks source link

Parse `function (:*=(f))() end` syntax compatibly #309

Closed c42f closed 1 year ago

c42f commented 1 year ago

Slightly modify the anonymous function arg list disambiguation rules so that the function signature in this syntax parses as

(call (call (quote *=) f))

The package NiLang uses this, so we'd like to keep it working.

Fixes the final niggling case in #134.

See also https://github.com/GiggleLiu/NiLang.jl/issues/83

codecov[bot] commented 1 year ago

Codecov Report

Merging #309 (a562455) into main (8a47045) will increase coverage by 0.00%. The diff coverage is 100.00%.

@@           Coverage Diff           @@
##             main     #309   +/-   ##
=======================================
  Coverage   96.81%   96.81%           
=======================================
  Files          14       14           
  Lines        4107     4109    +2     
=======================================
+ Hits         3976     3978    +2     
  Misses        131      131           
Impacted Files Coverage Δ
src/parser.jl 98.33% <100.00%> (+<0.01%) :arrow_up: