Skip to content

Commit 892d1ed

Browse files
author
MattDMo
committed
Lowercase hex in escaped_char, comma in unicode name escape
1 parent fb2db6a commit 892d1ed

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

PythonImproved.YAML-tmLanguage

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -594,7 +594,7 @@ repository:
594594
- include: '#generic_names'
595595

596596
escaped_char:
597-
match: (\\x[0-9A-F]{2})|(\\[0-7]{3})|(\\\n)|(\\\\)|(\\\")|(\\')|(\\a)|(\\b)|(\\f)|(\\n)|(\\r)|(\\t)|(\\v)
597+
match: (\\x[0-9a-fA-F]{2})|(\\[0-7]{3})|(\\\n)|(\\\\)|(\\\")|(\\')|(\\a)|(\\b)|(\\f)|(\\n)|(\\r)|(\\t)|(\\v)
598598
captures:
599599
'1': {name: constant.character.escape.hex.python}
600600
'2': {name: constant.character.escape.octal.python}
@@ -611,7 +611,7 @@ repository:
611611
'13': {name: constant.character.escape.vertical-tab.python}
612612

613613
escaped_unicode_char:
614-
match: (\\U[0-9A-Fa-f]{8})|(\\u[0-9A-Fa-f]{4})|(\\N\{[a-zA-Z0-9 ]+\})
614+
match: (\\U[0-9A-Fa-f]{8})|(\\u[0-9A-Fa-f]{4})|(\\N\{[a-zA-Z0-9\, ]+\})
615615
captures:
616616
'1': {name: constant.character.escape.unicode.16-bit-hex.python}
617617
'2': {name: constant.character.escape.unicode.32-bit-hex.python}

0 commit comments

Comments
 (0)