You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
EDIT: The same applies to the async keyword, it doesn't cause control-flow, it's merely a specifier/modifier.
The for keyword may not be used as a control-flow keyword, as it can be used in hrtb context (for<'a> ...). Howver, I am not quite sure how the old grammar dealt with that.
The text was updated successfully, but these errors were encountered:
6497: vscode: fix tmGrammar issues around non-controlflow keywords r=dustypomerleau a=cynecx
Addresses some of the issues mentioned here: dustypomerleau/rust-syntax#5.
In sync with dustypomerleau/rust-syntax#6.
Co-authored-by: cynecx <me@cynecx.net>
See microsoft/vscode#108254 (comment) (and rust-lang/rust-analyzer#6137 (comment)).
This does affect even more keywords (other than
fn
anduse
):move
andwhere
do not cause control-flow either.Also this:
rust-syntax/syntaxes/rust.tmLanguage.json
Lines 341 to 346 in e3b83c8
contradicts:
rust-syntax/syntaxes/rust.tmLanguage.json
Lines 649 to 652 in e3b83c8
EDIT: The same applies to the
async
keyword, it doesn't cause control-flow, it's merely a specifier/modifier.The
for
keyword may not be used as a control-flow keyword, as it can be used in hrtb context (for<'a> ...
). Howver, I am not quite sure how the old grammar dealt with that.The text was updated successfully, but these errors were encountered: