Commit 8a4b41ad authored by Eckhart Arnold's avatar Eckhart Arnold
Browse files

Ticket 132: Belege ohne Stellenangabe jetzt erlaubt, wenn dort der Zusatz...

Ticket 132: Belege ohne Stellenangabe jetzt erlaubt, wenn dort der Zusatz {sim. ibid.} als Platzhalter steht
parent e62e445a
......@@ -496,6 +496,8 @@ class Parser:
memoization_state = grammar.suspend_memoization__
grammar.suspend_memoization__ = False
grammar.farthest_fail__ = 0
# now, the actual parser call!
try:
node, rest = self._parse_proxy(text)
......
......@@ -16,9 +16,6 @@
# permissions and limitations under the License.
"""
Module ``syntaxtree`` encapsulates the functionality for creating
and handling syntax-trees. This includes serialization and
......
......@@ -631,7 +631,7 @@ def grammar_suite(directory, parser_factory, transformer_factory,
if not ignore_unknown_filetypes or str(e).find("Unknown") < 0:
raise e
except AssertionError as e:
e.args = ('When processing "%s":\n%s' % (filename, e.args[0]),)
e.args = ('When processing "%s":\n%s' % (filename, e.args[0]) if e.args else '',)
raise e
os.chdir(save_cwd)
error_report = []
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment