about summary refs log tree commit diff
path: root/editors/code/package.json
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2023-07-22 20:25:40 +0000
committerbors <bors@rust-lang.org>2023-07-22 20:25:40 +0000
commit99718d0c8bc5aadd993acdcabc1778fc7b5cc572 (patch)
treedcfdb82b4915bd59cf7ef7909073701d1c6b31a6 /editors/code/package.json
parentc99bb3c782a9c110edc906bb4a01f4bea173d48e (diff)
parent51b35ccb1b134d511cd29ea4a06c8d1abaaffabb (diff)
downloadrust-99718d0c8bc5aadd993acdcabc1778fc7b5cc572.tar.gz
rust-99718d0c8bc5aadd993acdcabc1778fc7b5cc572.zip
Auto merge of #15303 - oxalica:fix/byte-escape-highlight, r=lowr
Fix highlighting of byte escape sequences

Currently non-UTF8 escape sequences in byte strings and any escape sequences in byte literals are ignored.
Diffstat (limited to 'editors/code/package.json')
-rw-r--r--editors/code/package.json6
1 files changed, 5 insertions, 1 deletions
diff --git a/editors/code/package.json b/editors/code/package.json
index 31c483beb63..a4897899cab 100644
--- a/editors/code/package.json
+++ b/editors/code/package.json
@@ -1804,13 +1804,17 @@
             },
             {
                 "id": "escapeSequence",
-                "description": "Style for char escapes in strings"
+                "description": "Style for char or byte escapes in strings"
             },
             {
                 "id": "formatSpecifier",
                 "description": "Style for {} placeholders in format strings"
             },
             {
+                "id": "invalidEscapeSequence",
+                "description": "Style for invalid char or byte escapes in strings"
+            },
+            {
                 "id": "label",
                 "description": "Style for labels"
             },