File tree Expand file tree Collapse file tree 3 files changed +19
-0
lines changed Expand file tree Collapse file tree 3 files changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -1311,6 +1311,9 @@ where
1311
1311
char_kind = FullCodeCharKind :: InStringCommented ;
1312
1312
if chr == '"' {
1313
1313
CharClassesStatus :: BlockComment ( deepness)
1314
+ } else if chr == '*' && self . base . peek ( ) . map ( RichChar :: get_char) == Some ( '/' ) {
1315
+ char_kind = FullCodeCharKind :: InComment ;
1316
+ CharClassesStatus :: BlockCommentClosing ( deepness - 1 )
1314
1317
} else {
1315
1318
CharClassesStatus :: StringInBlockComment ( deepness)
1316
1319
}
Original file line number Diff line number Diff line change
1
+ fn main ( ) {
2
+ /* " */
3
+ println ! ( "Hello, world!" ) ;
4
+ /* abc " */
5
+ println ! ( "Hello, world!" ) ;
6
+ /* " abc */
7
+ println ! ( "Hello, world!" ) ;
8
+ }
Original file line number Diff line number Diff line change
1
+ fn main ( ) {
2
+ /* " */
3
+ println ! ( "Hello, world!" ) ;
4
+ /* abc " */
5
+ println ! ( "Hello, world!" ) ;
6
+ /* " abc */
7
+ println ! ( "Hello, world!" ) ;
8
+ }
You can’t perform that action at this time.
0 commit comments