mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 12:54:58 +00:00
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
This commit is contained in:
parent
6207ac90da
commit
48bc0ca745
5 changed files with 9 additions and 12 deletions
|
@ -232,7 +232,7 @@ fn highlight_element(
|
|||
| T![loop]
|
||||
| T![match]
|
||||
| T![return]
|
||||
| T![while] => h | HighlightModifier::Control,
|
||||
| T![while] => h | HighlightModifier::ControlFlow,
|
||||
T![unsafe] => h | HighlightModifier::Unsafe,
|
||||
_ => h,
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue