@@ -7,14 +7,14 @@ TOKEN_2015 = {
77 Whitespace |
88 Line_comment |
99 Block_comment |
10- Unterminated_block_comment |
10+ Reserved_block_comment_start |
1111 Character_literal |
1212 Byte_literal |
1313 String_literal |
1414 Byte_string_literal |
1515 Raw_string_literal |
1616 Raw_byte_string_literal |
17- Unterminated_literal_2015 |
17+ Reserved_literal_2015 |
1818 Reserved_single_quoted_literal_2015 |
1919 Float_literal |
2020 Reserved_float |
@@ -30,7 +30,7 @@ TOKEN_2021 = {
3030 Whitespace |
3131 Line_comment |
3232 Block_comment |
33- Unterminated_block_comment |
33+ Reserved_block_comment_start |
3434 Character_literal |
3535 Byte_literal |
3636 String_literal |
@@ -57,7 +57,7 @@ TOKEN_2024 = {
5757 Whitespace |
5858 Line_comment |
5959 Block_comment |
60- Unterminated_block_comment |
60+ Reserved_block_comment_start |
6161 Character_literal |
6262 Byte_literal |
6363 String_literal |
@@ -98,9 +98,9 @@ BLOCK_COMMENT = { "/*" ~ BLOCK_COMMENT_CONTENT ~ "*/" }
9898BLOCK_COMMENT_CONTENT = { ( BLOCK_COMMENT | !"*/" ~ !"/*" ~ ANY ) * }
9999// ANCHOR_END: block_comment
100100
101- // ANCHOR: unterminated_block_comment
102- Unterminated_block_comment = { "/*" }
103- // ANCHOR_END: unterminated_block_comment
101+ // ANCHOR: reserved_block_comment_start
102+ Reserved_block_comment_start = { "/*" }
103+ // ANCHOR_END: reserved_block_comment_start
104104
105105
106106// ANCHOR: single_quoted_literals_common
@@ -177,10 +177,10 @@ Raw_c_string_literal = { "cr" ~ RAW_DOUBLE_QUOTED_FORM }
177177// ANCHOR_END: raw_c_string_literal
178178
179179
180- // ANCHOR: unterminated_literal
181- Unterminated_literal_2015 = { "r" ~ DOUBLEQUOTE | "br" ~ DOUBLEQUOTE | "b'" }
180+ // ANCHOR: reserved_literal
181+ Reserved_literal_2015 = { "r" ~ DOUBLEQUOTE | "br" ~ DOUBLEQUOTE | "b'" }
182182Reserved_literal_2021 = { IDENT ~ ( DOUBLEQUOTE | "'" ) }
183- // ANCHOR_END: unterminated_literal
183+ // ANCHOR_END: reserved_literal
184184
185185// ANCHOR: reserved_single_quoted_literal
186186Reserved_single_quoted_literal_2015 = { "'" ~ IDENT ~ "'" }
0 commit comments