Skip to content

Commit 099e710

Browse files
author
Matt Morrison
committed
Merge pull request #30 from MattDMo/work
merge work into master
2 parents 43fabd2 + 1768739 commit 099e710

File tree

2 files changed

+6
-18
lines changed

2 files changed

+6
-18
lines changed

PythonImproved.YAML-tmLanguage

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,9 @@ patterns:
8686
name: keyword.operator.logical.python
8787
match: \b(and|in|is|not|or)\b
8888

89-
- comment: keywords that haven't fit into other groups (yet).
89+
- comment: keywords that don't fit into other groups.
9090
name: keyword.other.python
91-
match: \b(assert)\b
91+
match: \b(assert|del)\b
9292

9393
- name: invalid.deprecated.operator.python
9494
match: <>
@@ -472,7 +472,7 @@ repository:
472472
builtin_functions:
473473
patterns:
474474
- name: meta.function-call.python
475-
begin: (?<!\.)(__import__|ascii|abs|all|any|apply|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|copyright|credits|del|delattr|dict|dir|divmod|enumerate|eval|exec|execfile|exit|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|license|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|print|property|quit|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unicode|unichr|vars|xrange|zip)\s*(?=\()
475+
begin: (?<!\.)(__import__|ascii|abs|all|any|apply|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|copyright|credits|delattr|dict|dir|divmod|enumerate|eval|exec|execfile|exit|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|license|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|print|property|quit|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unicode|unichr|vars|xrange|zip)\s*(?=\()
476476
beginCaptures:
477477
'1': {name: support.function.builtin.python}
478478
end: (\))
@@ -491,10 +491,6 @@ repository:
491491
patterns:
492492
- include: '#keyword_arguments'
493493
- include: $self
494-
- comment: "These are statements in Py2, but don't really fit into keyword.control.flow\
495-
\ with the rest"
496-
name: support.function.builtin.python
497-
match: (?<!\.)\b(print|del)\b
498494

499495
builtin_types:
500496
name: support.type.python

PythonImproved.tmLanguage

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -209,9 +209,9 @@
209209
</dict>
210210
<dict>
211211
<key>comment</key>
212-
<string>keywords that haven't fit into other groups (yet).</string>
212+
<string>keywords that don't fit into other groups.</string>
213213
<key>match</key>
214-
<string>\b(assert)\b</string>
214+
<string>\b(assert|del)\b</string>
215215
<key>name</key>
216216
<string>keyword.other.python</string>
217217
</dict>
@@ -1382,7 +1382,7 @@
13821382
<array>
13831383
<dict>
13841384
<key>begin</key>
1385-
<string>(?&lt;!\.)(__import__|ascii|abs|all|any|apply|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|copyright|credits|del|delattr|dict|dir|divmod|enumerate|eval|exec|execfile|exit|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|license|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|print|property|quit|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unicode|unichr|vars|xrange|zip)\s*(?=\()</string>
1385+
<string>(?&lt;!\.)(__import__|ascii|abs|all|any|apply|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|copyright|credits|delattr|dict|dir|divmod|enumerate|eval|exec|execfile|exit|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|license|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|print|property|quit|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unicode|unichr|vars|xrange|zip)\s*(?=\()</string>
13861386
<key>beginCaptures</key>
13871387
<dict>
13881388
<key>1</key>
@@ -1447,14 +1447,6 @@
14471447
</dict>
14481448
</array>
14491449
</dict>
1450-
<dict>
1451-
<key>comment</key>
1452-
<string>These are statements in Py2, but don't really fit into keyword.control.flow with the rest</string>
1453-
<key>match</key>
1454-
<string>(?&lt;!\.)\b(print|del)\b</string>
1455-
<key>name</key>
1456-
<string>support.function.builtin.python</string>
1457-
</dict>
14581450
</array>
14591451
</dict>
14601452
<key>builtin_types</key>

0 commit comments

Comments
 (0)