Deprecate `\e` escape sequence

This was deprecated in v0.33.0-rc2 in favor of the new `\u{...}`
sequences. For now, deprecating it just means highlighting it as a
warning.
pull/844/head
Michael Davis 2023-12-07 10:39:17 +07:00
parent 3479db3d20
commit c9c7f0f017
No known key found for this signature in database
2 changed files with 10 additions and 0 deletions

@ -61,6 +61,10 @@
; Literals
(string) @string
((escape_sequence) @warning
; Deprecated in v0.33.0-rc2:
(#eq? @warning "\\e"))
(escape_sequence) @string.escape
(bit_string_segment_option) @function.builtin
(integer) @number
(float) @number

@ -2,3 +2,9 @@ const f = 100.001e523
// ^ number
// ^ number
// ^ number
const s = "Hello, \e\t\n"
// ^ warning
// ^ warning
// ^ string.escape
// ^ string.escape