diff options
| author | 2022-09-01 09:31:49 +0200 | |
|---|---|---|
| committer | 2022-09-01 09:31:49 +0200 | |
| commit | 95b02a948385370092bae845a83fd5f14af82438 (patch) | |
| tree | 001483cbe9a015d6bde56f051dd62a88ac88d7ec /test | |
| parent | 3bbbacae5c7deb27b2125bbfb47d8ce73ca56bb0 (diff) | |
relax block comment lexing requirements
Diffstat (limited to 'test')
| -rw-r--r-- | test/2.cff | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -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); |