Skip to content

Commit a63e8bb

Browse files
authored
Delete unused down option from parse_docstring (#430)
1 parent 6d7abc4 commit a63e8bb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/parser.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -526,9 +526,9 @@ end
526526
# Parse docstrings attached by a space or single newline
527527
#
528528
# flisp: parse-docstring
529-
function parse_docstring(ps::ParseState, down=parse_eq)
529+
function parse_docstring(ps::ParseState)
530530
mark = position(ps)
531-
down(ps)
531+
parse_eq(ps)
532532
if peek_behind(ps).kind == K"string"
533533
is_doc = true
534534
k = peek(ps)
@@ -553,7 +553,7 @@ function parse_docstring(ps::ParseState, down=parse_eq)
553553
# """\n doc\n """ foo ==> (doc (string-s "doc\n") foo)
554554
end
555555
if is_doc
556-
down(ps)
556+
parse_eq(ps)
557557
emit(ps, mark, K"doc")
558558
end
559559
end

0 commit comments

Comments
 (0)