Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Don't add \ before { #16618

Merged

Conversation

DropDemBits
Copy link
Contributor

@DropDemBits DropDemBits commented Feb 20, 2024

Fixes #16607 for {. The } case is already fixed by #16475.

The LSP snippet grammar only specifies that $, }, and \ can be escaped with backslashes, but not {.

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Feb 20, 2024
@DropDemBits DropDemBits force-pushed the structured-snippet-fix-escape-left-curly branch from 7c5758d to 825fd70 Compare February 20, 2024 19:18
@Veykril
Copy link
Member

Veykril commented Feb 20, 2024

Thanks!
@bors r+

@bors
Copy link
Collaborator

bors commented Feb 20, 2024

📌 Commit 825fd70 has been approved by Veykril

It is now in the queue for this repository.

@bors
Copy link
Collaborator

bors commented Feb 20, 2024

⌛ Testing commit 825fd70 with merge 2ef8a62...

bors added a commit that referenced this pull request Feb 20, 2024
…-curly, r=Veykril

fix: Don't add `\` before `{`

Fixes #16607 for `{`. The `}` case is already fixed by #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 `{`.
The LSP snippet grammar only specifies that `$`, `}`, and `\` can be escaped with
backslashes, but not `{`.
@DropDemBits DropDemBits force-pushed the structured-snippet-fix-escape-left-curly branch from 825fd70 to 07421c1 Compare February 20, 2024 19:36
@DropDemBits
Copy link
Contributor Author

Whoops, forgot to actually commit & push the formatting changes 😅
On a slower computer right now so Format on Save didn't actually trigger for me in time.

@Veykril
Copy link
Member

Veykril commented Feb 20, 2024

@bors r+

@bors
Copy link
Collaborator

bors commented Feb 20, 2024

📌 Commit 07421c1 has been approved by Veykril

It is now in the queue for this repository.

@bors
Copy link
Collaborator

bors commented Feb 20, 2024

⌛ Testing commit 07421c1 with merge 543d7e9...

@bors
Copy link
Collaborator

bors commented Feb 20, 2024

☀️ Test successful - checks-actions
Approved by: Veykril
Pushing 543d7e9 to master...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-review Status: Awaiting review from the assignee but also interested parties.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implement missing members introduces a \ before the curly braces of functions of a trait
4 participants