Skip to content

Commit

Permalink
fix: add version check to public kw parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
pfitzseb committed Apr 23, 2024
1 parent 248b35c commit 5c0dc1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/keywords.jl
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ function parse_kw(ps::ParseState; is_toplevel = false)
elseif k === Tokens.PRIMITIVE
return @default ps parse_primitive(ps)
elseif k === Tokens.PUBLIC
if is_toplevel
if is_toplevel && VERSION < v"1.11-"
return @default ps parse_public(ps)
else
return EXPR(:IDENTIFIER, ps)
Expand Down

0 comments on commit 5c0dc1c

Please sign in to comment.