summaryrefslogtreecommitdiff
path: root/testdata/integration/user_defined_syntax/token_escaping.in.osml
diff options
context:
space:
mode:
authorAndreas Stöckel <astoecke@techfak.uni-bielefeld.de>2015-04-02 11:42:07 +0200
committerAndreas Stöckel <astoecke@techfak.uni-bielefeld.de>2016-04-25 22:19:30 +0200
commitabfbee8595a6ba175f899f4dbca9f56c58a7a5e9 (patch)
tree6de33ba5b54215052465c4c16082118d5394d15e /testdata/integration/user_defined_syntax/token_escaping.in.osml
parent7aa5f13f2fb381e66cba98cb2be11e3d4c104258 (diff)
Rename simple_short_token test to token_escape, luckily there was no real bug involved here
Diffstat (limited to 'testdata/integration/user_defined_syntax/token_escaping.in.osml')
-rw-r--r--testdata/integration/user_defined_syntax/token_escaping.in.osml21
1 files changed, 21 insertions, 0 deletions
diff --git a/testdata/integration/user_defined_syntax/token_escaping.in.osml b/testdata/integration/user_defined_syntax/token_escaping.in.osml
new file mode 100644
index 0000000..66ad1eb
--- /dev/null
+++ b/testdata/integration/user_defined_syntax/token_escaping.in.osml
@@ -0,0 +1,21 @@
+%{
+ This test checks whether tokens starting with the default field indicator at
+ the beginning works by escaping the "!" with a backslash.
+}%
+\document
+\ontology#test{
+ \struct#a[root=true]
+ \field
+ \childRef[ref=b]
+ \childRef[ref=c]
+ \struct#b
+ \syntax
+ \short{\!=}
+ \struct#c
+ \syntax
+ \short{=}
+}
+
+\begin{a}
+= !=
+\end{a}