@@ -7,6 +7,9 @@ fileTypes: [py, py3, rpy, pyw, cpy, SConstruct, Sconstruct, sconstruct, SConscri
77uuid : 11B0273F-0284-4483-B17B-4B8D0A9294CC
88
99patterns :
10+ - name : support.type.ellipsis.python
11+ match : (\.{3})
12+
1013- name : support.ipython.in.python
1114 match : (^In \[(\d+)\]\:)
1215 captures :
@@ -288,12 +291,12 @@ patterns:
288291 - include : ' #keyword_arguments'
289292 - include : $self
290293
294+ - include : ' #builtin_types'
295+
291296- include : ' #builtin_functions_name'
292297
293298- include : ' #builtin_functions_call'
294299
295- - include : ' #builtin_types'
296-
297300- include : ' #errors_warnings_exceptions'
298301
299302- include : ' #docstrings'
@@ -512,7 +515,7 @@ repository:
512515 xrange | zip)
513516 \b\s*(?=(\())
514517 beginCaptures :
515- ' 1 ' : {name: support.function.builtin.python}
518+ ' 1 ' : {name: support.function.builtin.call. python}
516519 ' 2 ' : {name: punctuation.definition.arguments.begin.python}
517520 end : (\))
518521 endCaptures :
@@ -534,7 +537,7 @@ repository:
534537 - include : $self
535538
536539 builtin_functions_name :
537- name : support.function.builtin.python
540+ name : support.function.builtin.name. python
538541 match : |-
539542 (?x)
540543 (?<!\.)
@@ -546,11 +549,11 @@ repository:
546549 globals | hasattr | hash | help | hex | id | input | int |
547550 isinstance | issubclass | iter | len | list | locals | long | map |
548551 max | memoryview | min | next | object | oct | open | ord | pow |
549- print | property | range | raw_input | reduce | reload | repr |
552+ property | range | raw_input | reduce | reload | repr |
550553 reversed | round | set | setattr | slice | sorted | staticmethod |
551554 str | sum | super | tuple | type | unichr | unicode | vars |
552555 xrange | zip)
553- \b
556+ \b\s*(?!(\())
554557
555558 builtin_types :
556559 name : support.type.python
@@ -560,10 +563,10 @@ repository:
560563 (?x)
561564 (?<!\.)
562565 \b(
563- \.{3} | bool | buffer | bytearray | bytes | complex | dict | float |
566+ bool | buffer | bytearray | bytes | complex | dict | float |
564567 frozenset | int | list | long | memoryview | object | property |
565568 range | set | slice | str | tuple | type | unicode | xrange)
566- \b
569+ \b\s*(?!(\())
567570
568571 character-class :
569572 patterns :
@@ -638,9 +641,9 @@ repository:
638641 - begin : (?<!\.)(?=[\p{Alpha}_][\p{Alnum}_]*)
639642 end : (?![\p{Alnum}_])
640643 patterns :
644+ - include : ' #builtin_types'
641645 - include : ' #builtin_functions_name'
642646 - include : ' #builtin_functions_call'
643- - include : ' #builtin_types'
644647 - include : ' #errors_warnings_exceptions'
645648 - include : ' #magic_function_names'
646649 - include : ' #magic_function_calls'
@@ -796,9 +799,9 @@ repository:
796799 setstate | sizeof | str | sub | subclasscheck | truediv | trunc |
797800 unicode | xor)
798801 __)
799- \b
802+ \b\s*(?!(\())
800803 captures :
801- ' 2 ' : {name: support.function.magic.python}
804+ ' 2 ' : {name: support.function.magic.name. python}
802805
803806 magic_function_calls :
804807 patterns :
@@ -827,7 +830,7 @@ repository:
827830 __)
828831 \s*(?=(\())
829832 beginCaptures :
830- ' 2 ' : {name: support.function.magic.python}
833+ ' 2 ' : {name: support.function.magic.call. python}
831834 ' 4 ' : {name: punctuation.definition.arguments.begin.python}
832835 end : (\))
833836 endCaptures :
0 commit comments