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:
Aleksey Kladov 2020-04-05 14:46:07 +02:00
parent 6207ac90da
commit 48bc0ca745
5 changed files with 9 additions and 12 deletions

View file

@ -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,
}