File tree Expand file tree Collapse file tree 4 files changed +5
-5
lines changed
ide/src/syntax_highlighting Expand file tree Collapse file tree 4 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -222,7 +222,7 @@ pub(super) fn element(
222
222
T ! [ >] | T ! [ <] | T ! [ ==] | T ! [ >=] | T ! [ <=] | T ! [ !=]
223
223
if element. parent ( ) . and_then ( ast:: BinExpr :: cast) . is_some ( ) =>
224
224
{
225
- HlTag :: Operator ( HlOperator :: Comparision ) . into ( )
225
+ HlTag :: Operator ( HlOperator :: Comparison ) . into ( )
226
226
}
227
227
_ if element. parent ( ) . and_then ( ast:: BinExpr :: cast) . is_some ( ) => {
228
228
HlTag :: Operator ( HlOperator :: Other ) . into ( )
Original file line number Diff line number Diff line change @@ -96,7 +96,7 @@ pub enum HlOperator {
96
96
/// &&, ||, !
97
97
Logical ,
98
98
/// >, <, ==, >=, <=, !=
99
- Comparision ,
99
+ Comparison ,
100
100
///
101
101
Other ,
102
102
}
@@ -151,7 +151,7 @@ impl HlTag {
151
151
HlOperator :: Bitwise => "bitwise" ,
152
152
HlOperator :: Arithmetic => "arithmetic" ,
153
153
HlOperator :: Logical => "logical" ,
154
- HlOperator :: Comparision => "comparision " ,
154
+ HlOperator :: Comparison => "comparison " ,
155
155
HlOperator :: Other => "operator" ,
156
156
} ,
157
157
HlTag :: StringLiteral => "string_literal" ,
Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ define_semantic_token_types![
49
49
( CHAR_LITERAL , "characterLiteral" ) ,
50
50
( COLON , "colon" ) ,
51
51
( COMMA , "comma" ) ,
52
- ( COMPARISION , "comparision " ) ,
52
+ ( COMPARISON , "comparison " ) ,
53
53
( CONST_PARAMETER , "constParameter" ) ,
54
54
( DOT , "dot" ) ,
55
55
( ESCAPE_SEQUENCE , "escapeSequence" ) ,
Original file line number Diff line number Diff line change @@ -469,7 +469,7 @@ fn semantic_token_type_and_modifiers(
469
469
HlOperator :: Bitwise => semantic_tokens:: BITWISE ,
470
470
HlOperator :: Arithmetic => semantic_tokens:: ARITHMETIC ,
471
471
HlOperator :: Logical => semantic_tokens:: LOGICAL ,
472
- HlOperator :: Comparision => semantic_tokens:: COMPARISION ,
472
+ HlOperator :: Comparison => semantic_tokens:: COMPARISON ,
473
473
HlOperator :: Other => semantic_tokens:: OPERATOR ,
474
474
} ,
475
475
HlTag :: StringLiteral => lsp_types:: SemanticTokenType :: STRING ,
You can’t perform that action at this time.
0 commit comments