Skip to content

Commit

Permalink
Delete unused down option from parse_docstring (#430)
Browse files Browse the repository at this point in the history
  • Loading branch information
LilithHafner authored Jul 17, 2024
1 parent 6d7abc4 commit a63e8bb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/parser.jl
Original file line number Diff line number Diff line change
Expand Up @@ -526,9 +526,9 @@ end
# Parse docstrings attached by a space or single newline
#
# flisp: parse-docstring
function parse_docstring(ps::ParseState, down=parse_eq)
function parse_docstring(ps::ParseState)
mark = position(ps)
down(ps)
parse_eq(ps)
if peek_behind(ps).kind == K"string"
is_doc = true
k = peek(ps)
Expand All @@ -553,7 +553,7 @@ function parse_docstring(ps::ParseState, down=parse_eq)
# """\n doc\n """ foo ==> (doc (string-s "doc\n") foo)
end
if is_doc
down(ps)
parse_eq(ps)
emit(ps, mark, K"doc")
end
end
Expand Down

0 comments on commit a63e8bb

Please sign in to comment.