We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1f57ae6 commit 12c69cbCopy full SHA for 12c69cb
src/components/keywords.jl
@@ -73,7 +73,7 @@ function parse_kw(ps::ParseState; is_toplevel = false)
73
elseif k === Tokens.PRIMITIVE
74
return @default ps parse_primitive(ps)
75
elseif k === Tokens.PUBLIC
76
- if is_toplevel && ps.nt.kind !== Tokens.LPAREN && VERSION > v"1.11-"
+ if is_toplevel && !isemptyws(ps.ws) && VERSION > v"1.11-"
77
return @default ps parse_public(ps)
78
else
79
return EXPR(:IDENTIFIER, ps)
0 commit comments