Skip to content

Commit a60facf

Browse files
committed
Clarify comment
1 parent 2ad7164 commit a60facf

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/parser.jl

+4-5
Original file line numberDiff line numberDiff line change
@@ -499,12 +499,11 @@ function parse_stmts(ps::ParseState)
499499
end
500500
end
501501

502-
# Parse `public foo, bar` at the toplevel
502+
# Parse `public foo, bar`
503503
#
504-
# separate from parse_resword so that public is only a keyword at the toplevel
505-
# caller is responsible for ensuring this is only called at the toplevel
506-
#
507-
# flisp: syntax added after flisp implementation stopped being maintained
504+
# We *only* call this from toplevel contexts (file and module level) for
505+
# compatibility. In the future we should probably make public a full fledged
506+
# keyword like `export`.
508507
function parse_public(ps::ParseState)
509508
if ps.stream.version >= (1, 11) && peek(ps) == K"public"
510509
if peek(ps, 2) KSet"( = ["

0 commit comments

Comments
 (0)