Skip to content

Commit 2b5f35c

Browse files
Merge #8582
8582: Fix typo: comparision -> comparison r=kjeremy a=stanciuadrian Closes #8576 Co-authored-by: Adrian Stanciu <stanciu.adrian@gmail.com>
2 parents 9b85343 + 1c75d89 commit 2b5f35c

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

crates/ide/src/syntax_highlighting/highlight.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ pub(super) fn element(
222222
T![>] | T![<] | T![==] | T![>=] | T![<=] | T![!=]
223223
if element.parent().and_then(ast::BinExpr::cast).is_some() =>
224224
{
225-
HlTag::Operator(HlOperator::Comparision).into()
225+
HlTag::Operator(HlOperator::Comparison).into()
226226
}
227227
_ if element.parent().and_then(ast::BinExpr::cast).is_some() => {
228228
HlTag::Operator(HlOperator::Other).into()

crates/ide/src/syntax_highlighting/tags.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ pub enum HlOperator {
9696
/// &&, ||, !
9797
Logical,
9898
/// >, <, ==, >=, <=, !=
99-
Comparision,
99+
Comparison,
100100
///
101101
Other,
102102
}
@@ -151,7 +151,7 @@ impl HlTag {
151151
HlOperator::Bitwise => "bitwise",
152152
HlOperator::Arithmetic => "arithmetic",
153153
HlOperator::Logical => "logical",
154-
HlOperator::Comparision => "comparision",
154+
HlOperator::Comparison => "comparison",
155155
HlOperator::Other => "operator",
156156
},
157157
HlTag::StringLiteral => "string_literal",

crates/rust-analyzer/src/semantic_tokens.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ define_semantic_token_types![
4949
(CHAR_LITERAL, "characterLiteral"),
5050
(COLON, "colon"),
5151
(COMMA, "comma"),
52-
(COMPARISION, "comparision"),
52+
(COMPARISON, "comparison"),
5353
(CONST_PARAMETER, "constParameter"),
5454
(DOT, "dot"),
5555
(ESCAPE_SEQUENCE, "escapeSequence"),

crates/rust-analyzer/src/to_proto.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -469,7 +469,7 @@ fn semantic_token_type_and_modifiers(
469469
HlOperator::Bitwise => semantic_tokens::BITWISE,
470470
HlOperator::Arithmetic => semantic_tokens::ARITHMETIC,
471471
HlOperator::Logical => semantic_tokens::LOGICAL,
472-
HlOperator::Comparision => semantic_tokens::COMPARISION,
472+
HlOperator::Comparison => semantic_tokens::COMPARISON,
473473
HlOperator::Other => semantic_tokens::OPERATOR,
474474
},
475475
HlTag::StringLiteral => lsp_types::SemanticTokenType::STRING,

0 commit comments

Comments
 (0)