Fix typo: comparision -> comparison

This commit is contained in:
Adrian Stanciu 2021-04-19 18:44:38 +03:00
parent 3f1a220f32
commit 1c75d8975c
4 changed files with 5 additions and 5 deletions

View File

@ -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()

View File

@ -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",

View File

@ -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"),

View File

@ -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,