Skip to content

Commit 891cf56

Browse files
authored
Merge pull request #16 from adambullmer/fix-syntax
Fixed Python Extended syntax
2 parents 2d3bd82 + d96a7ce commit 891cf56

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

python.JSON-tmLanguage

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1293,7 +1293,7 @@
12931293
"beginCaptures": {
12941294
"0": { "name": "variable.parameter.function.python" }
12951295
},
1296-
"end": "(^\\s*$|(?=\"\"\"))",
1296+
"end": "(^\\s*$|\\s*(?=\"\"\"))",
12971297
"patterns": [
12981298
{
12991299
"match": "^\\s*(\\w*)\\s*\\{([^\\{\\}]*)\\}\\s*--\\s*(.*)$",
@@ -1310,7 +1310,7 @@
13101310
"beginCaptures": {
13111311
"0": { "name": "constant.numeric.integer.decimal.python" }
13121312
},
1313-
"end": "(^\\s*$|(?=\"\"\"))",
1313+
"end": "(^\\s*$|\\s*(?=\"\"\"))",
13141314
"patterns": [
13151315
{
13161316
"match": "^\\s*(\\w*)\\s*\\{([^\\{\\}]*)\\}(\\s*--)?\\s*(.*)?$",
@@ -1327,14 +1327,14 @@
13271327
"beginCaptures": {
13281328
"0": { "name": "support.function.magic.python" }
13291329
},
1330-
"end": "(^\\s*$|(?=\"\"\"))"
1330+
"end": "(^\\s*$|\\s*(?=\"\"\"))"
13311331
},
13321332
{
13331333
"begin": "^\\s*([Ee]xtends|[Dd]ecorators)(:)?\\s*$",
13341334
"beginCaptures": {
13351335
"0": { "name": "entity.name.function.decorator.python" }
13361336
},
1337-
"end": "(^\\s*$|(?=\"\"\"))",
1337+
"end": "(^\\s*$|\\s*(?=\"\"\"))",
13381338
"patterns": [
13391339
{
13401340
"match": "^(.*)$",
@@ -1349,7 +1349,7 @@
13491349
"beginCaptures": {
13501350
"0": { "name": "keyword.other.python" }
13511351
},
1352-
"end": "(^\\s*$|(?=\"\"\"))",
1352+
"end": "(^\\s*$|\\s*(?=\"\"\"))",
13531353
"patterns": [
13541354
{
13551355
"match": "^\\s*\\{([^\\{\\}]*)\\}",

python.tmLanguage

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2249,7 +2249,7 @@
22492249
</dict>
22502250
</dict>
22512251
<key>end</key>
2252-
<string>(^\s*$|(?="""))</string>
2252+
<string>(^\s*$|\s*(?="""))</string>
22532253
<key>patterns</key>
22542254
<array>
22552255
<dict>
@@ -2288,7 +2288,7 @@
22882288
</dict>
22892289
</dict>
22902290
<key>end</key>
2291-
<string>(^\s*$|(?="""))</string>
2291+
<string>(^\s*$|\s*(?="""))</string>
22922292
<key>patterns</key>
22932293
<array>
22942294
<dict>
@@ -2327,7 +2327,7 @@
23272327
</dict>
23282328
</dict>
23292329
<key>end</key>
2330-
<string>(^\s*$|(?="""))</string>
2330+
<string>(^\s*$|\s*(?="""))</string>
23312331
</dict>
23322332
<dict>
23332333
<key>begin</key>
@@ -2341,7 +2341,7 @@
23412341
</dict>
23422342
</dict>
23432343
<key>end</key>
2344-
<string>(^\s*$|(?="""))</string>
2344+
<string>(^\s*$|\s*(?="""))</string>
23452345
<key>patterns</key>
23462346
<array>
23472347
<dict>
@@ -2370,7 +2370,7 @@
23702370
</dict>
23712371
</dict>
23722372
<key>end</key>
2373-
<string>(^\s*$|(?="""))</string>
2373+
<string>(^\s*$|\s*(?="""))</string>
23742374
<key>patterns</key>
23752375
<array>
23762376
<dict>

0 commit comments

Comments
 (0)