Skip to content

Commit 39528bb

Browse files
authored
Merge pull request #390 from julia-vscode/sp/public-version-check
fix: add version check to public kw parsing
2 parents 248b35c + 71dd4b7 commit 39528bb

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
76+
if is_toplevel && VERSION > v"1.11-"
7777
return @default ps parse_public(ps)
7878
else
7979
return EXPR(:IDENTIFIER, ps)

0 commit comments

Comments
 (0)