diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2020-11-09 17:12:57 +0000 |
---|---|---|
committer | GitHub <[email protected]> | 2020-11-09 17:12:57 +0000 |
commit | d5775b320c4f274c77b38f01b39ea96336f046bb (patch) | |
tree | d07fa4e4290b53e91894a73adf60bd3e54364aae /crates/ide/src/syntax_highlighting.rs | |
parent | 2fd29d04708a19ef30af67bf5e231293d2deaf93 (diff) | |
parent | 9634521abdde2ee609e3fa434e942149832a72fa (diff) |
Merge #6511
6511: . is an operator r=matklad a=matklad
bors r+
🤖
Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'crates/ide/src/syntax_highlighting.rs')
-rw-r--r-- | crates/ide/src/syntax_highlighting.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/crates/ide/src/syntax_highlighting.rs b/crates/ide/src/syntax_highlighting.rs index 05bafe9c8..37ab7a8f6 100644 --- a/crates/ide/src/syntax_highlighting.rs +++ b/crates/ide/src/syntax_highlighting.rs | |||
@@ -557,7 +557,9 @@ fn highlight_element( | |||
557 | h | 557 | h |
558 | } | 558 | } |
559 | } | 559 | } |
560 | T![::] | T![->] | T![=>] | T![..] | T![=] | T![@] => HighlightTag::Operator.into(), | 560 | T![::] | T![->] | T![=>] | T![..] | T![=] | T![@] | T![.] => { |
561 | HighlightTag::Operator.into() | ||
562 | } | ||
561 | T![!] if element.parent().and_then(ast::MacroCall::cast).is_some() => { | 563 | T![!] if element.parent().and_then(ast::MacroCall::cast).is_some() => { |
562 | HighlightTag::Macro.into() | 564 | HighlightTag::Macro.into() |
563 | } | 565 | } |