From 1c75d8975c971721670b85a20079c428f3b3d1be Mon Sep 17 00:00:00 2001 From: Adrian Stanciu Date: Mon, 19 Apr 2021 18:44:38 +0300 Subject: Fix typo: comparision -> comparison --- crates/ide/src/syntax_highlighting/highlight.rs | 2 +- crates/ide/src/syntax_highlighting/tags.rs | 4 ++-- crates/rust-analyzer/src/semantic_tokens.rs | 2 +- crates/rust-analyzer/src/to_proto.rs | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/crates/ide/src/syntax_highlighting/highlight.rs b/crates/ide/src/syntax_highlighting/highlight.rs index 8cc877c1c..18552459b 100644 --- a/crates/ide/src/syntax_highlighting/highlight.rs +++ b/crates/ide/src/syntax_highlighting/highlight.rs @@ -222,7 +222,7 @@ pub(super) fn element( T![>] | T![<] | T![==] | T![>=] | T![<=] | T![!=] if element.parent().and_then(ast::BinExpr::cast).is_some() => { - HlTag::Operator(HlOperator::Comparision).into() + HlTag::Operator(HlOperator::Comparison).into() } _ if element.parent().and_then(ast::BinExpr::cast).is_some() => { HlTag::Operator(HlOperator::Other).into() diff --git a/crates/ide/src/syntax_highlighting/tags.rs b/crates/ide/src/syntax_highlighting/tags.rs index 8128d231d..e58392d67 100644 --- a/crates/ide/src/syntax_highlighting/tags.rs +++ b/crates/ide/src/syntax_highlighting/tags.rs @@ -96,7 +96,7 @@ pub enum HlOperator { /// &&, ||, ! Logical, /// >, <, ==, >=, <=, != - Comparision, + Comparison, /// Other, } @@ -151,7 +151,7 @@ impl HlTag { HlOperator::Bitwise => "bitwise", HlOperator::Arithmetic => "arithmetic", HlOperator::Logical => "logical", - HlOperator::Comparision => "comparision", + HlOperator::Comparison => "comparison", HlOperator::Other => "operator", }, HlTag::StringLiteral => "string_literal", diff --git a/crates/rust-analyzer/src/semantic_tokens.rs b/crates/rust-analyzer/src/semantic_tokens.rs index adc059817..ecab89b2a 100644 --- a/crates/rust-analyzer/src/semantic_tokens.rs +++ b/crates/rust-analyzer/src/semantic_tokens.rs @@ -49,7 +49,7 @@ define_semantic_token_types![ (CHAR_LITERAL, "characterLiteral"), (COLON, "colon"), (COMMA, "comma"), - (COMPARISION, "comparision"), + (COMPARISON, "comparison"), (CONST_PARAMETER, "constParameter"), (DOT, "dot"), (ESCAPE_SEQUENCE, "escapeSequence"), diff --git a/crates/rust-analyzer/src/to_proto.rs b/crates/rust-analyzer/src/to_proto.rs index fe4d0733d..c2361b32e 100644 --- a/crates/rust-analyzer/src/to_proto.rs +++ b/crates/rust-analyzer/src/to_proto.rs @@ -469,7 +469,7 @@ fn semantic_token_type_and_modifiers( HlOperator::Bitwise => semantic_tokens::BITWISE, HlOperator::Arithmetic => semantic_tokens::ARITHMETIC, HlOperator::Logical => semantic_tokens::LOGICAL, - HlOperator::Comparision => semantic_tokens::COMPARISION, + HlOperator::Comparison => semantic_tokens::COMPARISON, HlOperator::Other => semantic_tokens::OPERATOR, }, HlTag::StringLiteral => lsp_types::SemanticTokenType::STRING, -- cgit v1.2.3