Fix typo: comparision -> comparison
This commit is contained in:
parent
3f1a220f32
commit
1c75d8975c
@ -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()
|
||||
|
@ -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",
|
||||
|
@ -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"),
|
||||
|
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user