summaryrefslogtreecommitdiffstats
path: root/src/dtc/tests/comments.dts
diff options
context:
space:
mode:
Diffstat (limited to 'src/dtc/tests/comments.dts')
-rw-r--r--src/dtc/tests/comments.dts39
1 files changed, 39 insertions, 0 deletions
diff --git a/src/dtc/tests/comments.dts b/src/dtc/tests/comments.dts
new file mode 100644
index 0000000..0b04b6b
--- /dev/null
+++ b/src/dtc/tests/comments.dts
@@ -0,0 +1,39 @@
+/* regexps for lexing comments are.. tricky. Check if we've actually
+ * got it right */
+/dts-v1/;
+
+/ {
+ // line comment
+ prop1;
+ /* comment */
+ prop2;
+ /* multiline
+
+ notaprop1;
+
+ comment */
+ prop3;
+ /**/
+ prop4;
+ /***/
+ prop5;
+ /****/
+ prop6;
+ /* another
+ * multiline
+ * comment */
+ prop7;
+ /* yet
+ * another
+ * multline
+ * comment
+ */
+ prop8;
+ /** try this */
+ prop9;
+ /* and this **/
+ prop10;
+ child /* finally */ {
+ };
+};
+/* final comment */
OpenPOWER on IntegriCloud