From 93e69ca433401c0224edc1d23462c3ff2051a82b Mon Sep 17 00:00:00 2001 From: Andreas Stöckel Date: Fri, 17 Apr 2015 01:20:27 +0200 Subject: Do not handle tokens if the current handler is not valid. Fixes crash bug in added integration test. --- .../token_in_invalid_command.fail.osml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 testdata/integration/user_defined_syntax/token_in_invalid_command.fail.osml (limited to 'testdata') diff --git a/testdata/integration/user_defined_syntax/token_in_invalid_command.fail.osml b/testdata/integration/user_defined_syntax/token_in_invalid_command.fail.osml new file mode 100644 index 0000000..b424c6b --- /dev/null +++ b/testdata/integration/user_defined_syntax/token_in_invalid_command.fail.osml @@ -0,0 +1,15 @@ +\document + +\ontology#test + \struct#test[root=true] + \field + \childRef[ref=a] + \struct#a + \syntax + \short{-} + +\begin{test} + \b{a-} + \b{a-} +\end{test} + -- cgit v1.2.3