We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2ad7164 commit a60facfCopy full SHA for a60facf
src/parser.jl
@@ -499,12 +499,11 @@ function parse_stmts(ps::ParseState)
499
end
500
501
502
-# Parse `public foo, bar` at the toplevel
+# Parse `public foo, bar`
503
#
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
+# We *only* call this from toplevel contexts (file and module level) for
+# compatibility. In the future we should probably make public a full fledged
+# keyword like `export`.
508
function parse_public(ps::ParseState)
509
if ps.stream.version >= (1, 11) && peek(ps) == K"public"
510
if peek(ps, 2) ∈ KSet"( = ["
0 commit comments