summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorDavid Phillips <david@sighup.nz>2018-08-06 01:21:33 +1200
committerDavid Phillips <david@sighup.nz>2018-08-06 01:21:39 +1200
commit740cd4abc6b44716a1af72b8982fe98cba668b03 (patch)
treed9614f47aa010def953e3f509becb8143b1a6fd4 /test
parent82475e2d3c98c482dba8cffec6686f0681f8ebd8 (diff)
downloadhence-740cd4abc6b44716a1af72b8982fe98cba668b03.tar.xz
Add lexer support for comment lines
Diffstat (limited to 'test')
-rw-r--r--test/invalid-hence/empty-10.hence6
-rw-r--r--test/invalid-hence/empty-10.hence.expected1
2 files changed, 7 insertions, 0 deletions
diff --git a/test/invalid-hence/empty-10.hence b/test/invalid-hence/empty-10.hence
new file mode 100644
index 0000000..7a0896d
--- /dev/null
+++ b/test/invalid-hence/empty-10.hence
@@ -0,0 +1,6 @@
+#
+# foo
+ # foo # foo
+ #foo asdf
+ #foo
+#foo
diff --git a/test/invalid-hence/empty-10.hence.expected b/test/invalid-hence/empty-10.hence.expected
new file mode 100644
index 0000000..738f19c
--- /dev/null
+++ b/test/invalid-hence/empty-10.hence.expected
@@ -0,0 +1 @@
+invalid-hence/empty-10.hence: Error: Expected module declaration, got end of file