Commit 543d7e9
committed
Auto merge of rust-lang#16618 - DropDemBits:structured-snippet-fix-escape-left-curly, r=Veykril
fix: Don't add `\` before `{`
Fixes rust-lang#16607 for `{`. The `}` case is already fixed by rust-lang#16475.
The [LSP snippet grammar](https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#snippet_syntax) only specifies that `$`, `}`, and `\` can be escaped with backslashes, but not `{`.1 file changed
+7
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1002 | 1002 | | |
1003 | 1003 | | |
1004 | 1004 | | |
1005 | | - | |
1006 | | - | |
1007 | | - | |
1008 | | - | |
| 1005 | + | |
| 1006 | + | |
1009 | 1007 | | |
1010 | 1008 | | |
1011 | 1009 | | |
| |||
2176 | 2174 | | |
2177 | 2175 | | |
2178 | 2176 | | |
2179 | | - | |
| 2177 | + | |
2180 | 2178 | | |
2181 | 2179 | | |
2182 | 2180 | | |
| |||
2272 | 2270 | | |
2273 | 2271 | | |
2274 | 2272 | | |
2275 | | - | |
| 2273 | + | |
2276 | 2274 | | |
2277 | 2275 | | |
2278 | 2276 | | |
| |||
2336 | 2334 | | |
2337 | 2335 | | |
2338 | 2336 | | |
2339 | | - | |
| 2337 | + | |
2340 | 2338 | | |
2341 | 2339 | | |
2342 | 2340 | | |
| |||
2401 | 2399 | | |
2402 | 2400 | | |
2403 | 2401 | | |
2404 | | - | |
| 2402 | + | |
2405 | 2403 | | |
2406 | 2404 | | |
2407 | 2405 | | |
| |||
2466 | 2464 | | |
2467 | 2465 | | |
2468 | 2466 | | |
2469 | | - | |
| 2467 | + | |
2470 | 2468 | | |
2471 | 2469 | | |
2472 | 2470 | | |
| |||
0 commit comments