@@ -10034,8 +10034,21 @@ parser_lex(pm_parser_t *parser) {
1003410034 following && (
1003510035 (peek_at(parser, following) == '&' && peek_at(parser, following + 1) == '&') ||
1003610036 (peek_at(parser, following) == '|' && peek_at(parser, following + 1) == '|') ||
10037- (peek_at(parser, following) == 'a' && peek_at(parser, following + 1) == 'n' && peek_at(parser, following + 2) == 'd' && !char_is_identifier(parser, following + 3, parser->end - (following + 3))) ||
10038- (peek_at(parser, following) == 'o' && peek_at(parser, following + 1) == 'r' && !char_is_identifier(parser, following + 2, parser->end - (following + 2)))
10037+ (
10038+ peek_at(parser, following) == 'a' &&
10039+ peek_at(parser, following + 1) == 'n' &&
10040+ peek_at(parser, following + 2) == 'd' &&
10041+ peek_at(parser, next_content + 3) != '!' &&
10042+ peek_at(parser, next_content + 3) != '?' &&
10043+ !char_is_identifier(parser, following + 3, parser->end - (following + 3))
10044+ ) ||
10045+ (
10046+ peek_at(parser, following) == 'o' &&
10047+ peek_at(parser, following + 1) == 'r' &&
10048+ peek_at(parser, next_content + 2) != '!' &&
10049+ peek_at(parser, next_content + 2) != '?' &&
10050+ !char_is_identifier(parser, following + 2, parser->end - (following + 2))
10051+ )
1003910052 )
1004010053 ) {
1004110054 if (!lexed_comment) parser_lex_ignored_newline(parser);
@@ -10106,6 +10119,8 @@ parser_lex(pm_parser_t *parser) {
1010610119 peek_at(parser, next_content) == 'a' &&
1010710120 peek_at(parser, next_content + 1) == 'n' &&
1010810121 peek_at(parser, next_content + 2) == 'd' &&
10122+ peek_at(parser, next_content + 3) != '!' &&
10123+ peek_at(parser, next_content + 3) != '?' &&
1010910124 !char_is_identifier(parser, next_content + 3, parser->end - (next_content + 3))
1011010125 ) {
1011110126 if (!lexed_comment) parser_lex_ignored_newline(parser);
@@ -10122,6 +10137,8 @@ parser_lex(pm_parser_t *parser) {
1012210137 if (
1012310138 peek_at(parser, next_content) == 'o' &&
1012410139 peek_at(parser, next_content + 1) == 'r' &&
10140+ peek_at(parser, next_content + 2) != '!' &&
10141+ peek_at(parser, next_content + 2) != '?' &&
1012510142 !char_is_identifier(parser, next_content + 2, parser->end - (next_content + 2))
1012610143 ) {
1012710144 if (!lexed_comment) parser_lex_ignored_newline(parser);
0 commit comments