Using postfix snippets on expressions containing '\\'
results in it getting unescaped
#11897
Labels
'\\'
results in it getting unescaped
#11897
Uh oh!
There was an error while loading. Please reload this page.
rust-analyzer version: 2022-03-28
rustc version: rustc 1.61.0-nightly (c5cf08d37 2022-03-30)
Example:
(where
|
is the cursor)Accepting the suggestion will result in this code:
which is invalid syntax.
It also seems that this happens with strings. Other escapes are intact, it's only
\\
that gets mangled.Also of note is that the escape may be nested in some deeper expression. For instance:
The text was updated successfully, but these errors were encountered: