summaryrefslogtreecommitdiff
path: root/testdata/integration/user_defined_syntax
diff options
context:
space:
mode:
authorAndreas Stöckel <astoecke@techfak.uni-bielefeld.de>2015-04-17 01:20:27 +0200
committerAndreas Stöckel <astoecke@techfak.uni-bielefeld.de>2016-04-25 22:26:13 +0200
commit93e69ca433401c0224edc1d23462c3ff2051a82b (patch)
tree53a0a54c9fc2db86c18fac2291f6ca9bc98918bd /testdata/integration/user_defined_syntax
parent0516c20666567049f81d45890e6f25ae0170c84c (diff)
Do not handle tokens if the current handler is not valid.
Fixes crash bug in added integration test.
Diffstat (limited to 'testdata/integration/user_defined_syntax')
-rw-r--r--testdata/integration/user_defined_syntax/token_in_invalid_command.fail.osml15
1 files changed, 15 insertions, 0 deletions
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}
+