OLD | NEW |
---|---|
(Empty) | |
1 -- foo bar | |
2 # foo bar | |
3 (* foo | |
4 bar *) | |
5 (* foo | |
6 (* bar *) | |
7 *) | |
8 | |
9 ---------------------------------------------------- | |
10 | |
11 [ | |
12 ["comment", "-- foo bar"], | |
13 ["comment", "# foo bar"], | |
14 ["comment", "(* foo\r\nbar *)"], | |
15 ["comment", "(* foo\r\n(* bar *)\r\n*)"] | |
16 ] | |
17 | |
18 ---------------------------------------------------- | |
19 | |
20 Checks for single-line and multi-line comments. | |
21 Also checks for one level of nesting. | |
OLD | NEW |