diff options
author | Laurențiu Nicola <[email protected]> | 2020-05-25 09:51:56 +0100 |
---|---|---|
committer | Laurențiu Nicola <[email protected]> | 2020-05-25 10:08:58 +0100 |
commit | c2358365ad0b82d4a5f023192ee0ab2c198d6aee (patch) | |
tree | 9923f9ea4cdebebe11df1b0cdf3a1fb453b82d95 /crates/ra_ide/src/syntax_highlighting.rs | |
parent | 1527feb744c7911b6ca482554f0399d3ef0ebfdc (diff) |
Add self keyword semantic token type
Diffstat (limited to 'crates/ra_ide/src/syntax_highlighting.rs')
-rw-r--r-- | crates/ra_ide/src/syntax_highlighting.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/crates/ra_ide/src/syntax_highlighting.rs b/crates/ra_ide/src/syntax_highlighting.rs index 61aeb28cb..8a995d779 100644 --- a/crates/ra_ide/src/syntax_highlighting.rs +++ b/crates/ra_ide/src/syntax_highlighting.rs | |||
@@ -414,6 +414,7 @@ fn highlight_element( | |||
414 | T![for] if !is_child_of_impl(element) => h | HighlightModifier::ControlFlow, | 414 | T![for] if !is_child_of_impl(element) => h | HighlightModifier::ControlFlow, |
415 | T![unsafe] => h | HighlightModifier::Unsafe, | 415 | T![unsafe] => h | HighlightModifier::Unsafe, |
416 | T![true] | T![false] => HighlightTag::BoolLiteral.into(), | 416 | T![true] | T![false] => HighlightTag::BoolLiteral.into(), |
417 | T![self] => HighlightTag::SelfKeyword.into(), | ||
417 | _ => h, | 418 | _ => h, |
418 | } | 419 | } |
419 | } | 420 | } |