Skip to content
This repository was archived by the owner on Jan 25, 2022. It is now read-only.

Commit 0069d1f

Browse files
authored
Merge pull request #110 from pchaigno/avoid-ambiguous-h
Avoid using the ambiguous \h shorthand character
2 parents 58e251e + f406b00 commit 0069d1f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

grammars/rust.cson

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
}
4040
'escaped_character': {
4141
'name': 'constant.character.escape.rust'
42-
'match': '\\\\(x\\h{2}|[0-2][0-7]{0,2}|3[0-6][0-7]?|37[0-7]?|[4-7][0-7]?|.)'
42+
'match': '\\\\(x[0-9A-Fa-f]{2}|[0-2][0-7]{0,2}|3[0-6][0-7]?|37[0-7]?|[4-7][0-7]?|.)'
4343
}
4444
'string_literal': {
4545
'comment': 'Double-quote string literal'
@@ -221,7 +221,7 @@
221221
{
222222
'comment': 'Single-quote string literal (character)'
223223
'name': 'string.quoted.single.rust'
224-
'match': 'b?\'([^\'\\\\]|\\\\(x\\h{2}|[0-2][0-7]{0,2}|3[0-6][0-7]?|37[0-7]?|[4-7][0-7]?|.))\''
224+
'match': 'b?\'([^\'\\\\]|\\\\(x[0-9A-Fa-f]{2}|[0-2][0-7]{0,2}|3[0-6][0-7]?|37[0-7]?|[4-7][0-7]?|.))\''
225225
}
226226
{ 'include': '#string_literal' }
227227
{ 'include': '#raw_string_literal' }

0 commit comments

Comments
 (0)