From 1c75d8975c971721670b85a20079c428f3b3d1be Mon Sep 17 00:00:00 2001 From: Adrian Stanciu Date: Mon, 19 Apr 2021 18:44:38 +0300 Subject: Fix typo: comparision -> comparison --- crates/ide/src/syntax_highlighting/highlight.rs | 2 +- crates/ide/src/syntax_highlighting/tags.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'crates/ide/src/syntax_highlighting') diff --git a/crates/ide/src/syntax_highlighting/highlight.rs b/crates/ide/src/syntax_highlighting/highlight.rs index 8cc877c1c..18552459b 100644 --- a/crates/ide/src/syntax_highlighting/highlight.rs +++ b/crates/ide/src/syntax_highlighting/highlight.rs @@ -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() diff --git a/crates/ide/src/syntax_highlighting/tags.rs b/crates/ide/src/syntax_highlighting/tags.rs index 8128d231d..e58392d67 100644 --- a/crates/ide/src/syntax_highlighting/tags.rs +++ b/crates/ide/src/syntax_highlighting/tags.rs @@ -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", -- cgit v1.2.3