Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
D
DHParser
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Analytics
Analytics
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
badw-it
DHParser
Commits
8ac2521f
Commit
8ac2521f
authored
Feb 18, 2019
by
di68kap
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- DHParser/parse.py ParserError is now always instantiated with Nodes with initialized pos-value
parent
f935aa90
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
DHParser/parse.py
DHParser/parse.py
+3
-2
No files found.
DHParser/parse.py
View file @
8ac2521f
...
...
@@ -1768,7 +1768,7 @@ class Series(NaryParser):
# or len(self.parsers) >= len([p for p in results if p.tag_name != ZOMBIE_TAG])
ret_node
=
self
.
_return_values
(
results
)
# type: Node
if
error
:
raise
ParserError
(
ret_node
.
with_pos
(
len
(
self
.
grammar
.
document__
)
-
len
(
text
)),
raise
ParserError
(
ret_node
.
with_pos
(
self
.
grammar
.
document_length__
-
len
(
text
)),
text
,
first_throw
=
True
)
return
ret_node
,
text_
...
...
@@ -1985,7 +1985,8 @@ class AllOf(NaryParser):
or
len
(
self
.
parsers
)
>=
len
([
p
for
p
in
results
if
p
.
tag_name
!=
ZOMBIE_TAG
])
nd
=
self
.
_return_values
(
results
)
# type: Node
if
error
:
raise
ParserError
(
nd
,
text
,
first_throw
=
True
)
raise
ParserError
(
nd
.
with_pos
(
self
.
grammar
.
document_length__
-
len
(
text
)),
text
,
first_throw
=
True
)
return
nd
,
text_
def
__repr__
(
self
):
...
...
Write
Preview
Markdown
is supported
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