Skip to content

Commit 2f72b12

Browse files
committed
Add docs for the ignore_errors flag
1 parent 841ed02 commit 2f72b12

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/parser_api.jl

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,8 @@ _parse_docs = """
104104
version=VERSION,
105105
ignore_trivia=true,
106106
filename=nothing,
107-
ignore_warnings=false)
107+
ignore_errors=false,
108+
ignore_warnings=ignore_errors)
108109
109110
# Or, with the same arguments
110111
parseall(...)
@@ -131,7 +132,8 @@ tree, if applicable. This will also annotate errors and warnings with the
131132
source file name.
132133
133134
A `ParseError` will be thrown if any errors or warnings occurred during
134-
parsing. To avoid exceptions due to warnings, use `ignore_warnings=true`.
135+
parsing. To avoid exceptions due to warnings, use `ignore_warnings=true`. To
136+
also avoid exceptions due to errors, use `ignore_errors=true`.
135137
"""
136138

137139
parse(::Type{T}, text::AbstractString; kws...) where {T} = _parse(:statement, true, T, text; kws...)[1]

0 commit comments

Comments
 (0)