diff options
author | Aleksey Kladov <[email protected]> | 2020-04-05 13:46:07 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2020-04-06 08:57:50 +0100 |
commit | 48bc0ca745a0ebdd61b7db3935582bf5ec95042b (patch) | |
tree | 2a9f6b1f5a9995c3bddf7a1ef829cb6890413b7d /crates/ra_ide/src/syntax_highlighting.rs | |
parent | 6207ac90da7e607218457bf872fa32df6b78f224 (diff) |
Make control token modifier less ambiguous
In textmate, keyword.control is used for all kinds of things; in fact,
the default scope mapping for keyword is keyword.control!
So let's add a less ambiguous controlFlow modifier
See Microsoft/vscode#94367
Diffstat (limited to 'crates/ra_ide/src/syntax_highlighting.rs')
-rw-r--r-- | crates/ra_ide/src/syntax_highlighting.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_ide/src/syntax_highlighting.rs b/crates/ra_ide/src/syntax_highlighting.rs index 7fc94d3cd..d833a816b 100644 --- a/crates/ra_ide/src/syntax_highlighting.rs +++ b/crates/ra_ide/src/syntax_highlighting.rs | |||
@@ -232,7 +232,7 @@ fn highlight_element( | |||
232 | | T![loop] | 232 | | T![loop] |
233 | | T![match] | 233 | | T![match] |
234 | | T![return] | 234 | | T![return] |
235 | | T![while] => h | HighlightModifier::Control, | 235 | | T![while] => h | HighlightModifier::ControlFlow, |
236 | T![unsafe] => h | HighlightModifier::Unsafe, | 236 | T![unsafe] => h | HighlightModifier::Unsafe, |
237 | _ => h, | 237 | _ => h, |
238 | } | 238 | } |