From 2a779323533161f1202b634b9092169be088ad05 Mon Sep 17 00:00:00 2001 From: JamesWrigley Date: Sat, 18 Oct 2025 21:46:59 +0200 Subject: [PATCH] Specialize `parse_brackets()` on the input function This prevents invalidations. --- src/julia/parser.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/julia/parser.jl b/src/julia/parser.jl index 4142a010..1daa1e03 100644 --- a/src/julia/parser.jl +++ b/src/julia/parser.jl @@ -3171,8 +3171,8 @@ end # (a,b=1; c,d=2; e,f=3) ==> (tuple-p a (= b 1) (parameters c (= d 2)) (parameters e (= f 3))) # # flisp: parts of parse-paren- and parse-arglist -function parse_brackets(after_parse::Function, - ps::ParseState, closing_kind, generator_is_last=true) +function parse_brackets(after_parse::F, + ps::ParseState, closing_kind, generator_is_last=true) where {F <: Function} ps = ParseState(ps, range_colon_enabled=true, space_sensitive=false, where_enabled=true,