David Gibson | fc14dad | 2005-06-08 17:18:34 +1000 | [diff] [blame] | 1 | /* regexps for lexing comments are.. tricky. Check if we've actually |
2 | * got it right */ | ||||
3 | |||||
4 | / { | ||||
5 | // line comment | ||||
6 | prop1; | ||||
7 | /* comment */ | ||||
8 | prop2; | ||||
9 | /* multiline | ||||
10 | |||||
11 | notaprop1; | ||||
12 | |||||
13 | comment */ | ||||
14 | prop3; | ||||
15 | /**/ | ||||
16 | prop4; | ||||
17 | /***/ | ||||
18 | prop5; | ||||
19 | /****/ | ||||
20 | prop6; | ||||
21 | /* another | ||||
22 | * multiline | ||||
23 | * comment */ | ||||
24 | prop7; | ||||
25 | /* yet | ||||
26 | * another | ||||
27 | * multline | ||||
28 | * comment | ||||
29 | */ | ||||
30 | prop8; | ||||
31 | /** try this */ | ||||
32 | prop9; | ||||
33 | /* and this **/ | ||||
David Gibson | 4102d84 | 2005-06-16 14:36:37 +1000 | [diff] [blame] | 34 | prop10; |
35 | child /* finally */ { | ||||
36 | }; | ||||
David Gibson | fc14dad | 2005-06-08 17:18:34 +1000 | [diff] [blame] | 37 | }; |
38 | /* final comment */ |