Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
The container registry cleanup task is now completed and the registry can be used normally.
Open sidebar
badw-it
DHParser
Commits
65add5a5
Commit
65add5a5
authored
Sep 24, 2020
by
eckhart
Browse files
""@ Bedeutungsangabe_resume" im MLW.ebnf korrigiert
parent
f1c96938
Changes
1
Hide whitespace changes
Inline
Side-by-side
DHParser/parse.py
View file @
65add5a5
...
...
@@ -52,6 +52,7 @@ from DHParser.syntaxtree import ChildrenType, Node, RootNode, WHITESPACE_PTYPE,
from
DHParser.toolkit
import
sane_parser_name
,
escape_control_characters
,
re
,
cython
,
\
abbreviate_middle
,
RX_NEVER_MATCH
,
RxPatternType
,
linebreaks
,
line_col
__all__
=
(
'ParserError'
,
'ApplyFunc'
,
'FlagFunc'
,
...
...
@@ -457,7 +458,8 @@ class Parser:
except
ParserError
as
pe
:
# catching up with parsing after an error occurred
gap
=
len
(
text
)
-
len
(
pe
.
rest
)
rules
=
grammar
.
resume_rules__
.
get
(
self
.
pname
,
[])
rules
=
grammar
.
resume_rules__
.
get
(
self
.
pname
or
grammar
.
associated_symbol
(
self
).
pname
,
[])
rest
=
pe
.
rest
[
len
(
pe
.
node
):]
i
=
reentry_point
(
rest
,
rules
,
grammar
.
comment_rx__
,
grammar
.
reentry_search_window__
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment