From 95b02a948385370092bae845a83fd5f14af82438 Mon Sep 17 00:00:00 2001 From: lemon Date: Thu, 1 Sep 2022 09:31:49 +0200 Subject: relax block comment lexing requirements --- test/2.cff | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'test') 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); -- cgit v1.2.3