aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorlemon <lsof@mailbox.org>2022-09-01 09:31:49 +0200
committerlemon <lsof@mailbox.org>2022-09-01 09:31:49 +0200
commit95b02a948385370092bae845a83fd5f14af82438 (patch)
tree001483cbe9a015d6bde56f051dd62a88ac88d7ec /test
parent3bbbacae5c7deb27b2125bbfb47d8ce73ca56bb0 (diff)
relax block comment lexing requirements
Diffstat (limited to 'test')
-rw-r--r--test/2.cff11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/2.cff b/test/2.cff
index 43fc148..65165d1 100644
--- a/test/2.cff
+++ b/test/2.cff
@@ -6,6 +6,17 @@ bitfield Foo : u16 {
num 10 signed,
}
+#{
+ Test block comment,
+ contains tokens " ",
+ this does not end the comment -> '}'
+ 8ab
+ #test
+ i`m having to use backtick instead of single quote for the apostrophe in this phrase,
+ so the main use is for commenting out code,
+ and inline comments to annotate e.g. parameter names
+}
+
extern fn main() int {
let foo Foo = {};
printf("0x%X: %d, %d, %d\n", foo.#raw, foo.tag, foo.flag, foo.num);