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

Commit a5d798c

Browse files
committed
Make sure things other than regexes get parsed inside raw strings
My CSON formatting was bad, which caused only the regular expression grammar to get parsed inside of raw strings.
1 parent 83fc553 commit a5d798c

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

grammars/python.cson

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1001,10 +1001,10 @@
10011001
'name': 'punctuation.definition.string.begin.python'
10021002
'3':
10031003
'patterns': [
1004-
'include': '#constant_placeholder'
1005-
'include': '#escaped_unicode_char'
1006-
'include': '#escaped_char'
1007-
'include': '#regular_expressions'
1004+
{'include': '#constant_placeholder'}
1005+
{'include': '#escaped_unicode_char'}
1006+
{'include': '#escaped_char'}
1007+
{'include': '#regular_expressions'}
10081008
]
10091009
'4':
10101010
'name': 'punctuation.definition.string.end.python'
@@ -1049,9 +1049,9 @@
10491049
'name': 'punctuation.definition.string.begin.python'
10501050
'3':
10511051
'patterns': [
1052-
'include': '#constant_placeholder'
1053-
'include': '#escaped_char'
1054-
'include': '#regular_expressions'
1052+
{'include': '#constant_placeholder'}
1053+
{'include': '#escaped_char'}
1054+
{'include': '#regular_expressions'}
10551055
]
10561056
'4':
10571057
'name': 'punctuation.definition.string.end.python'
@@ -1369,10 +1369,10 @@
13691369
'name': 'punctuation.definition.string.begin.python'
13701370
'3':
13711371
'patterns': [
1372-
'include': '#constant_placeholder'
1373-
'include': '#escaped_unicode_char'
1374-
'include': '#escaped_char'
1375-
'include': '#regular_expressions'
1372+
{'include': '#constant_placeholder'}
1373+
{'include': '#escaped_unicode_char'}
1374+
{'include': '#escaped_char'}
1375+
{'include': '#regular_expressions'}
13761376
]
13771377
'4':
13781378
'name': 'punctuation.definition.string.end.python'
@@ -1415,9 +1415,9 @@
14151415
'name': 'punctuation.definition.string.begin.python'
14161416
'3':
14171417
'patterns': [
1418-
'include': '#constant_placeholder'
1419-
'include': '#escaped_char'
1420-
'include': '#regular_expressions'
1418+
{'include': '#constant_placeholder'}
1419+
{'include': '#escaped_char'}
1420+
{'include': '#regular_expressions'}
14211421
]
14221422
'4':
14231423
'name': 'punctuation.definition.string.end.python'

0 commit comments

Comments
 (0)