File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -214,6 +214,9 @@ typedef struct {
214
214
static inline void process_left_forward_slash (BlockCommentProcessing * processing , char current ) {
215
215
if (current == '*' ) {
216
216
processing -> nestingDepth += 1 ;
217
+ } else if (current == '/' ) {
218
+ processing -> state = LeftForwardSlash ;
219
+ return ;
217
220
}
218
221
processing -> state = Continuing ;
219
222
};
Original file line number Diff line number Diff line change @@ -48,6 +48,13 @@ Nested block comments
48
48
49
49
// ---
50
50
51
+ /*
52
+ nested with extra slash between two nested block comments
53
+ /**///**/
54
+ */
55
+
56
+ // ---
57
+
51
58
----
52
59
53
60
(source_file
@@ -56,6 +63,8 @@ Nested block comments
56
63
(block_comment)
57
64
(line_comment)
58
65
(block_comment)
66
+ (line_comment)
67
+ (block_comment)
59
68
(line_comment))
60
69
61
70
============================================
You can’t perform that action at this time.
0 commit comments