Skip to content

Commit

Permalink
Merge pull request #16 from adambullmer/fix-syntax
Browse files Browse the repository at this point in the history
Fixed Python Extended syntax
  • Loading branch information
adambullmer authored Jun 27, 2016
2 parents 2d3bd82 + d96a7ce commit 891cf56
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
10 changes: 5 additions & 5 deletions python.JSON-tmLanguage
Original file line number Diff line number Diff line change
Expand Up @@ -1293,7 +1293,7 @@
"beginCaptures": {
"0": { "name": "variable.parameter.function.python" }
},
"end": "(^\\s*$|(?=\"\"\"))",
"end": "(^\\s*$|\\s*(?=\"\"\"))",
"patterns": [
{
"match": "^\\s*(\\w*)\\s*\\{([^\\{\\}]*)\\}\\s*--\\s*(.*)$",
Expand All @@ -1310,7 +1310,7 @@
"beginCaptures": {
"0": { "name": "constant.numeric.integer.decimal.python" }
},
"end": "(^\\s*$|(?=\"\"\"))",
"end": "(^\\s*$|\\s*(?=\"\"\"))",
"patterns": [
{
"match": "^\\s*(\\w*)\\s*\\{([^\\{\\}]*)\\}(\\s*--)?\\s*(.*)?$",
Expand All @@ -1327,14 +1327,14 @@
"beginCaptures": {
"0": { "name": "support.function.magic.python" }
},
"end": "(^\\s*$|(?=\"\"\"))"
"end": "(^\\s*$|\\s*(?=\"\"\"))"
},
{
"begin": "^\\s*([Ee]xtends|[Dd]ecorators)(:)?\\s*$",
"beginCaptures": {
"0": { "name": "entity.name.function.decorator.python" }
},
"end": "(^\\s*$|(?=\"\"\"))",
"end": "(^\\s*$|\\s*(?=\"\"\"))",
"patterns": [
{
"match": "^(.*)$",
Expand All @@ -1349,7 +1349,7 @@
"beginCaptures": {
"0": { "name": "keyword.other.python" }
},
"end": "(^\\s*$|(?=\"\"\"))",
"end": "(^\\s*$|\\s*(?=\"\"\"))",
"patterns": [
{
"match": "^\\s*\\{([^\\{\\}]*)\\}",
Expand Down
10 changes: 5 additions & 5 deletions python.tmLanguage
Original file line number Diff line number Diff line change
Expand Up @@ -2249,7 +2249,7 @@
</dict>
</dict>
<key>end</key>
<string>(^\s*$|(?="""))</string>
<string>(^\s*$|\s*(?="""))</string>
<key>patterns</key>
<array>
<dict>
Expand Down Expand Up @@ -2288,7 +2288,7 @@
</dict>
</dict>
<key>end</key>
<string>(^\s*$|(?="""))</string>
<string>(^\s*$|\s*(?="""))</string>
<key>patterns</key>
<array>
<dict>
Expand Down Expand Up @@ -2327,7 +2327,7 @@
</dict>
</dict>
<key>end</key>
<string>(^\s*$|(?="""))</string>
<string>(^\s*$|\s*(?="""))</string>
</dict>
<dict>
<key>begin</key>
Expand All @@ -2341,7 +2341,7 @@
</dict>
</dict>
<key>end</key>
<string>(^\s*$|(?="""))</string>
<string>(^\s*$|\s*(?="""))</string>
<key>patterns</key>
<array>
<dict>
Expand Down Expand Up @@ -2370,7 +2370,7 @@
</dict>
</dict>
<key>end</key>
<string>(^\s*$|(?="""))</string>
<string>(^\s*$|\s*(?="""))</string>
<key>patterns</key>
<array>
<dict>
Expand Down

0 comments on commit 891cf56

Please sign in to comment.