-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix escaped backslash at end of string (#162)
Fixes #159
- Loading branch information
1 parent
08a024b
commit 0470269
Showing
6 changed files
with
61 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 4 additions & 0 deletions
4
kusto-syntax-highlighting/test/snapshots/regression-tests/escaped-backlash-in-string.kusto
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
let scannerId = "9d632724-5c18-43e9-9314-555e9587b30c"; | ||
cluster("foo").database("bar").table("baz") | ||
| extend FileNameParts = split(FullFileName, "Modified\\") | ||
| extend FileName = trim("'", FileName) |
49 changes: 49 additions & 0 deletions
49
...syntax-highlighting/test/snapshots/regression-tests/escaped-backlash-in-string.kusto.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
>let scannerId = "9d632724-5c18-43e9-9314-555e9587b30c"; | ||
#^^^ source.kusto keyword.control.kusto | ||
# ^^^^^^^^^^^^^ source.kusto | ||
# ^ source.kusto string.quoted.double.kusto punctuation.definition.string.kusto | ||
# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.kusto string.quoted.double.kusto | ||
# ^ source.kusto string.quoted.double.kusto punctuation.definition.string.kusto | ||
# ^^ source.kusto | ||
>cluster("foo").database("bar").table("baz") | ||
#^^^^^^^ source.kusto meta.special.database.kusto support.function.kusto | ||
# ^ source.kusto meta.special.database.kusto | ||
# ^ source.kusto meta.special.database.kusto string.quoted.double.kusto punctuation.definition.string.kusto | ||
# ^^^ source.kusto meta.special.database.kusto string.quoted.double.kusto | ||
# ^ source.kusto meta.special.database.kusto string.quoted.double.kusto punctuation.definition.string.kusto | ||
# ^ source.kusto meta.special.database.kusto | ||
# ^ source.kusto | ||
# ^^^^^^^^ source.kusto meta.special.database.kusto support.function.kusto | ||
# ^ source.kusto meta.special.database.kusto | ||
# ^ source.kusto meta.special.database.kusto string.quoted.double.kusto punctuation.definition.string.kusto | ||
# ^^^ source.kusto meta.special.database.kusto string.quoted.double.kusto | ||
# ^ source.kusto meta.special.database.kusto string.quoted.double.kusto punctuation.definition.string.kusto | ||
# ^ source.kusto meta.special.database.kusto | ||
# ^ source.kusto | ||
# ^^^^^ source.kusto support.function.kusto | ||
# ^ source.kusto | ||
# ^ source.kusto string.quoted.double.kusto punctuation.definition.string.kusto | ||
# ^^^ source.kusto string.quoted.double.kusto | ||
# ^ source.kusto string.quoted.double.kusto punctuation.definition.string.kusto | ||
# ^^ source.kusto | ||
>| extend FileNameParts = split(FullFileName, "Modified\\") | ||
#^^ source.kusto | ||
# ^^^^^^ source.kusto keyword.other.query.kusto | ||
# ^^^^^^^^^^^^^^^^^ source.kusto | ||
# ^^^^^ source.kusto support.function.kusto | ||
# ^^^^^^^^^^^^^^^ source.kusto | ||
# ^ source.kusto string.quoted.double.kusto punctuation.definition.string.kusto | ||
# ^^^^^^^^ source.kusto string.quoted.double.kusto | ||
# ^^ source.kusto string.quoted.double.kusto constant.character.escape.kusto | ||
# ^ source.kusto string.quoted.double.kusto punctuation.definition.string.kusto | ||
# ^^ source.kusto | ||
>| extend FileName = trim("'", FileName) | ||
#^^ source.kusto | ||
# ^^^^^^ source.kusto keyword.other.query.kusto | ||
# ^^^^^^^^^^^^ source.kusto | ||
# ^^^^ source.kusto support.function.kusto | ||
# ^ source.kusto | ||
# ^ source.kusto string.quoted.double.kusto punctuation.definition.string.kusto | ||
# ^ source.kusto string.quoted.double.kusto | ||
# ^ source.kusto string.quoted.double.kusto punctuation.definition.string.kusto | ||
# ^^^^^^^^^^^^ source.kusto |