Skip to content

Commit 12c69cb

Browse files
committed
adopt suggestion
1 parent 1f57ae6 commit 12c69cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/keywords.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ function parse_kw(ps::ParseState; is_toplevel = false)
7373
elseif k === Tokens.PRIMITIVE
7474
return @default ps parse_primitive(ps)
7575
elseif k === Tokens.PUBLIC
76-
if is_toplevel && ps.nt.kind !== Tokens.LPAREN && VERSION > v"1.11-"
76+
if is_toplevel && !isemptyws(ps.ws) && VERSION > v"1.11-"
7777
return @default ps parse_public(ps)
7878
else
7979
return EXPR(:IDENTIFIER, ps)

0 commit comments

Comments
 (0)