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
13111311 char_kind = FullCodeCharKind :: InStringCommented ;
13121312 if chr == '"' {
13131313 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 )
13141317 } else {
13151318 CharClassesStatus :: StringInBlockComment ( deepness)
13161319 }
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