Rework YANG lexer/parser
[yangtools.git] / yang / yang-parser-rfc7950 / src / test / resources / bugs / YT1089 / foo.yang
diff --git a/yang/yang-parser-rfc7950/src/test/resources/bugs/YT1089/foo.yang b/yang/yang-parser-rfc7950/src/test/resources/bugs/YT1089/foo.yang
new file mode 100644 (file)
index 0000000..91bd884
--- /dev/null
@@ -0,0 +1,35 @@
+module foo {
+  namespace urn:foo;
+  prefix foo;
+
+  description +something;
+  contact contact++;
+  organization organiza++tion;
+
+  leaf foo {
+    type string;
+    default +;
+    description 'squot' + "dquot";
+    reference "+" + '+';
+  }
+
+  leaf bar {
+    type string;
+    default ++;
+    description "+ + ++";
+    reference "++ + +";
+  }
+
+  leaf baz {
+    type string;
+    default /;
+    description :;
+    reference *;
+  }
+
+  leaf xyzzy {
+    type string;
+    description "a weird" +" concat";
+    reference "another"+ " weird concat";
+  }
+}