File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -14028,7 +14028,6 @@ impl<'a> Parser<'a> {
1402814028 loop {
1402914029 let t = self.peek_nth_token_no_skip_ref(0);
1403014030 match &t.token {
14031- // ~ only the very first comment
1403214031 Token::Whitespace(ws) => {
1403314032 match ws {
1403414033 Whitespace::SingleLineComment { comment, prefix } => {
@@ -14047,7 +14046,7 @@ impl<'a> Parser<'a> {
1404714046 Whitespace::MultiLineComment(comment) => {
1404814047 return Ok(if supports_multiline && comment.starts_with("+") {
1404914048 let text = comment.split_at(1).1.into();
14050- self.next_token_no_skip(); // ~ consume the token
14049+ self.next_token_no_skip(); // Consume the comment token
1405114050 Some(OptimizerHint {
1405214051 text,
1405314052 style: OptimizerHintStyle::MultiLine,
@@ -14056,9 +14055,8 @@ impl<'a> Parser<'a> {
1405614055 None
1405714056 });
1405814057 }
14059- // but skip (pure) whitespace
1406014058 Whitespace::Space | Whitespace::Tab | Whitespace::Newline => {
14061- // consume the token and try with the next whitespace (if any)
14059+ // Consume the token and try with the next whitespace or comment
1406214060 self.next_token_no_skip();
1406314061 }
1406414062 }
You can’t perform that action at this time.
0 commit comments