From ff678e1349e9bad0a03337d7feadc0e90a192c56 Mon Sep 17 00:00:00 2001 From: kjeremy Date: Thu, 1 Oct 2020 15:20:18 -0400 Subject: Up rustc-ap-rustc_lexer to 681 cargo update as well --- crates/syntax/src/parsing/lexer.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'crates/syntax/src') diff --git a/crates/syntax/src/parsing/lexer.rs b/crates/syntax/src/parsing/lexer.rs index fa3be1016..f1202113b 100644 --- a/crates/syntax/src/parsing/lexer.rs +++ b/crates/syntax/src/parsing/lexer.rs @@ -120,10 +120,10 @@ fn rustc_token_kind_to_syntax_kind( let syntax_kind = { match rustc_token_kind { - rustc_lexer::TokenKind::LineComment => COMMENT, + rustc_lexer::TokenKind::LineComment { doc_style: _ } => COMMENT, - rustc_lexer::TokenKind::BlockComment { terminated: true } => COMMENT, - rustc_lexer::TokenKind::BlockComment { terminated: false } => { + rustc_lexer::TokenKind::BlockComment { doc_style: _, terminated: true } => COMMENT, + rustc_lexer::TokenKind::BlockComment { doc_style: _, terminated: false } => { return ( COMMENT, Some("Missing trailing `*/` symbols to terminate the block comment"), @@ -164,7 +164,7 @@ fn rustc_token_kind_to_syntax_kind( rustc_lexer::TokenKind::Colon => T![:], rustc_lexer::TokenKind::Dollar => T![$], rustc_lexer::TokenKind::Eq => T![=], - rustc_lexer::TokenKind::Not => T![!], + rustc_lexer::TokenKind::Bang => T![!], rustc_lexer::TokenKind::Lt => T![<], rustc_lexer::TokenKind::Gt => T![>], rustc_lexer::TokenKind::Minus => T![-], -- cgit v1.2.3