Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
badw-it
DHParser
Commits
7e3c5056
Commit
7e3c5056
authored
Mar 18, 2019
by
di68kap
Browse files
- syntaxtree.parse_tree: bugfix
parent
920e07d4
Changes
1
Hide whitespace changes
Inline
Side-by-side
DHParser/syntaxtree.py
View file @
7e3c5056
...
...
@@ -1276,7 +1276,7 @@ def parse_tree(xml_sxpr_json: str) -> Optional[Node]:
"""
if
RX_IS_XML
.
match
(
xml_sxpr_json
):
return
parse_xml
(
xml_sxpr_json
)
elif
RX_IS_SXPR
(
xml_sxpr_json
):
elif
RX_IS_SXPR
.
match
(
xml_sxpr_json
):
return
parse_sxpr
(
xml_sxpr_json
)
elif
re
.
match
(
'\s*'
,
xml_sxpr_json
):
return
None
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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