Fix typo: comparision -> comparison
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user