Fix typo: comparision -> comparison
This commit is contained in:
@@ -222,7 +222,7 @@ pub(super) fn element(
|
|||||||
T![>] | T![<] | T![==] | T![>=] | T![<=] | T![!=]
|
T![>] | T![<] | T![==] | T![>=] | T![<=] | T![!=]
|
||||||
if element.parent().and_then(ast::BinExpr::cast).is_some() =>
|
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() => {
|
_ if element.parent().and_then(ast::BinExpr::cast).is_some() => {
|
||||||
HlTag::Operator(HlOperator::Other).into()
|
HlTag::Operator(HlOperator::Other).into()
|
||||||
|
|||||||
@@ -96,7 +96,7 @@ pub enum HlOperator {
|
|||||||
/// &&, ||, !
|
/// &&, ||, !
|
||||||
Logical,
|
Logical,
|
||||||
/// >, <, ==, >=, <=, !=
|
/// >, <, ==, >=, <=, !=
|
||||||
Comparision,
|
Comparison,
|
||||||
///
|
///
|
||||||
Other,
|
Other,
|
||||||
}
|
}
|
||||||
@@ -151,7 +151,7 @@ impl HlTag {
|
|||||||
HlOperator::Bitwise => "bitwise",
|
HlOperator::Bitwise => "bitwise",
|
||||||
HlOperator::Arithmetic => "arithmetic",
|
HlOperator::Arithmetic => "arithmetic",
|
||||||
HlOperator::Logical => "logical",
|
HlOperator::Logical => "logical",
|
||||||
HlOperator::Comparision => "comparision",
|
HlOperator::Comparison => "comparison",
|
||||||
HlOperator::Other => "operator",
|
HlOperator::Other => "operator",
|
||||||
},
|
},
|
||||||
HlTag::StringLiteral => "string_literal",
|
HlTag::StringLiteral => "string_literal",
|
||||||
|
|||||||
@@ -49,7 +49,7 @@ define_semantic_token_types![
|
|||||||
(CHAR_LITERAL, "characterLiteral"),
|
(CHAR_LITERAL, "characterLiteral"),
|
||||||
(COLON, "colon"),
|
(COLON, "colon"),
|
||||||
(COMMA, "comma"),
|
(COMMA, "comma"),
|
||||||
(COMPARISION, "comparision"),
|
(COMPARISON, "comparison"),
|
||||||
(CONST_PARAMETER, "constParameter"),
|
(CONST_PARAMETER, "constParameter"),
|
||||||
(DOT, "dot"),
|
(DOT, "dot"),
|
||||||
(ESCAPE_SEQUENCE, "escapeSequence"),
|
(ESCAPE_SEQUENCE, "escapeSequence"),
|
||||||
|
|||||||
@@ -469,7 +469,7 @@ fn semantic_token_type_and_modifiers(
|
|||||||
HlOperator::Bitwise => semantic_tokens::BITWISE,
|
HlOperator::Bitwise => semantic_tokens::BITWISE,
|
||||||
HlOperator::Arithmetic => semantic_tokens::ARITHMETIC,
|
HlOperator::Arithmetic => semantic_tokens::ARITHMETIC,
|
||||||
HlOperator::Logical => semantic_tokens::LOGICAL,
|
HlOperator::Logical => semantic_tokens::LOGICAL,
|
||||||
HlOperator::Comparision => semantic_tokens::COMPARISION,
|
HlOperator::Comparison => semantic_tokens::COMPARISON,
|
||||||
HlOperator::Other => semantic_tokens::OPERATOR,
|
HlOperator::Other => semantic_tokens::OPERATOR,
|
||||||
},
|
},
|
||||||
HlTag::StringLiteral => lsp_types::SemanticTokenType::STRING,
|
HlTag::StringLiteral => lsp_types::SemanticTokenType::STRING,
|
||||||
|
|||||||
Reference in New Issue
Block a user