summaryrefslogtreecommitdiff
path: root/testdata/integration/user_defined_syntax/token_escaping.in.osml
diff options
context:
space:
mode:
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}