Skip to content

Commit 8d23d3c

Browse files
author
MattDMo
committed
Move del from support.function.builtin to keyword.other. Addresses #28
1 parent 0a5d7a7 commit 8d23d3c

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
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

0 commit comments

Comments
 (0)