Fix escape characters inside strings #17427
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes #17057
Before:
![image](https://user-images.githubusercontent.com/5701732/132988290-24dc2953-21a3-4833-8fd8-5002ec45d3d6.png)
After:
![image](https://user-images.githubusercontent.com/33529441/176996312-ca3eb0d1-2bdf-41f3-94ef-a32b2ef9c4d3.png)
I am very confused as what this comment means:
"comment": "this is faster than the next begin/end rule since sub-pattern will match till end-of-line and SQL files tend to have very long lines."
I did some testing and found
begin/end
rules to be no slower thanmatch
if anything,
match
was slightly slower due to microsoft/vscode-textmate#167For some reason double quote strings did not support escape characters what so ever
Does SQL support escape characters inside double quote strings??
should also support the double char escape sequence?