Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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