Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
badw-it
DHParser
Commits
d07f3b0f
Commit
d07f3b0f
authored
May 23, 2021
by
Eckhart Arnold
Browse files
small refactorings
parent
5290fee7
Changes
1
Hide whitespace changes
Inline
Side-by-side
examples/LaTeX/LaTeXParser.py
View file @
d07f3b0f
...
@@ -225,7 +225,8 @@ def get_grammar() -> LaTeXGrammar:
...
@@ -225,7 +225,8 @@ def get_grammar() -> LaTeXGrammar:
elif
get_config_value
(
'history_tracking'
):
elif
get_config_value
(
'history_tracking'
):
set_tracer
(
grammar
,
trace_history
)
set_tracer
(
grammar
,
trace_history
)
return
grammar
return
grammar
def
parse_LaTeX
(
document
,
start_parser
=
"root_parser__"
,
*
,
complete_match
=
True
):
def
parse_LaTeX
(
document
,
start_parser
=
"root_parser__"
,
*
,
complete_match
=
True
):
return
get_grammar
()(
document
,
start_parser
,
complete_match
)
return
get_grammar
()(
document
,
start_parser
,
complete_match
)
...
...
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