Improve syntax highlights (#18728)

Closes #18722

- Replace the `@escape` capture name with `@string.escape` for escape
sequences in Go, Python, Regex, Racket, Ruby, and Scheme.
- Rust
  - Add syntax highlighting for escape sequences. Close #18722
- Fix the issue where `@punctuation.delimiter` is being overwritten by
`@operator`.
  - Add the period (".") to `@punctuation.delimiter`.

Release Notes:

- N/A
This commit is contained in:
狐狸 2024-10-10 01:25:46 +08:00 committed by GitHub
parent 1cbaca667f
commit f05b440572
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 9 additions and 10 deletions

View file

@ -4,7 +4,7 @@
(here_string)
(byte_string)] @string
(regex) @string.regex
(escape_sequence) @escape
(escape_sequence) @string.escape
[(comment)
(block_comment)

View file

@ -116,7 +116,7 @@
] @string.special.symbol
(regex) @string.regex
(escape_sequence) @escape
(escape_sequence) @string.escape
[
(integer)

View file

@ -7,7 +7,7 @@
(symbol) @variable
(string) @string
(escape_sequence) @escape
(escape_sequence) @string.escape
[(comment)
(block_comment)