@@ -77,14 +77,14 @@ patterns:
7777 match : \b(None|True|False|Ellipsis|NotImplemented)\b
7878
7979- name : storage.modifier.declaration.python
80- match : \b(global|nonlocal)\b
80+ match : \b(global|nonlocal|async )\b
8181
8282- name : keyword.control.import.python
8383 match : \b(?:(import|from|as))\b
8484
8585- comment : keywords that delimit flow blocks or alter flow from within a block
8686 name : keyword.control.flow.python
87- match : \b(elif|else|except|finally|for|if|try|while|with|break|continue|pass|raise|return|yield)\b
87+ match : \b(elif|else|except|finally|for|if|try|while|with|break|continue|pass|raise|return|yield|await )\b
8888
8989- comment : keyword operators that evaluate to True or False
9090 name : keyword.operator.logical.python
@@ -101,10 +101,10 @@ patterns:
101101 match : <\=|>\=|\=\=|<|>|\!\=
102102
103103- name : keyword.operator.assignment.augmented.python
104- match : \+\=|-\=|\*\=|/\=|//\=|%\=|&\=|\|\=|\^\=|>>\=|<<\=|\*\*\=
104+ match : \+\=|-\=|\*\=|/\=|//\=|%\=|&\=|\|\=|\^\=|>>\=|<<\=|\*\*\=|@\=
105105
106106- name : keyword.operator.arithmetic.python
107- match : \+|\-|\*|\*\*|/|//|%|<<|>>|&|\||\^|~
107+ match : \+|\-|\*|\*\*|/|//|%|<<|>>|&|\||\^|~|(?!^)@
108108
109109- name : keyword.operator.assignment.python
110110 match : \=
@@ -626,7 +626,7 @@ repository:
626626
627627 illegal_names :
628628 name : invalid.illegal.name.python
629- match : \b(and|as|assert|break|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b
629+ match : \b(and|as|assert|async|await| break|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b
630630
631631 keyword_arguments :
632632 begin : \b([\p{Alpha}_][\p{Alnum}_]*)\s*(=)(?!=)
0 commit comments