Skip to content

Commit

Permalink
Merge pull request #34 from noritada/fix/coloring-for-escaped-charact…
Browse files Browse the repository at this point in the history
…ers-in-strings

Fix an issue that `\xN8` and `\xN9` in strings are differently colored
  • Loading branch information
Wilfred authored Oct 13, 2023
2 parents 4b16614 + 3cea764 commit 3a24cf5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions syntaxes/rust.tmLanguage.json
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,7 @@
"escapes": {
"comment": "escapes: ASCII, byte, Unicode, quote, regex",
"name": "constant.character.escape.rust",
"match": "(\\\\)(?:(?:(x[0-7][0-7a-fA-F])|(u(\\{)[\\da-fA-F]{4,6}(\\}))|.))",
"match": "(\\\\)(?:(?:(x[0-7][\\da-fA-F])|(u(\\{)[\\da-fA-F]{4,6}(\\}))|.))",
"captures": {
"1": {
"name": "constant.character.escape.backslash.rust"
Expand Down Expand Up @@ -1165,4 +1165,4 @@
]
}
}
}
}
2 changes: 1 addition & 1 deletion syntaxes/rust.tmLanguage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ repository:
escapes:
comment: 'escapes: ASCII, byte, Unicode, quote, regex'
name: constant.character.escape.rust
match: (\\)(?:(?:(x[0-7][0-7a-fA-F])|(u(\{)[\da-fA-F]{4,6}(\}))|.))
match: (\\)(?:(?:(x[0-7][\da-fA-F])|(u(\{)[\da-fA-F]{4,6}(\}))|.))
captures:
1:
name: constant.character.escape.backslash.rust
Expand Down

0 comments on commit 3a24cf5

Please sign in to comment.