Skip to content

Commit

Permalink
Clarify comment
Browse files Browse the repository at this point in the history
  • Loading branch information
c42f committed Jul 30, 2023
1 parent 2ad7164 commit a60facf
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/parser.jl
Original file line number Diff line number Diff line change
Expand Up @@ -499,12 +499,11 @@ function parse_stmts(ps::ParseState)
end
end

# Parse `public foo, bar` at the toplevel
# Parse `public foo, bar`
#
# separate from parse_resword so that public is only a keyword at the toplevel
# caller is responsible for ensuring this is only called at the toplevel
#
# 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`.
function parse_public(ps::ParseState)
if ps.stream.version >= (1, 11) && peek(ps) == K"public"
if peek(ps, 2) KSet"( = ["
Expand Down

0 comments on commit a60facf

Please sign in to comment.