python.yaml: add async as a keyword (#1713)
await is already a keyword, but async is not.
This commit is contained in:
parent
ead07e0b60
commit
006165230d
1 changed files with 1 additions and 1 deletions
|
@ -18,7 +18,7 @@ rules:
|
||||||
# definitions
|
# definitions
|
||||||
- identifier: "def [a-zA-Z_0-9]+"
|
- identifier: "def [a-zA-Z_0-9]+"
|
||||||
# keywords
|
# keywords
|
||||||
- statement: "\\b(and|as|assert|await|break|class|continue|def|del|elif|else|except|finally|for|from|global|if|import|in|is|lambda|nonlocal|not|or|pass|raise|return|try|while|with|yield)\\b"
|
- statement: "\\b(and|as|assert|async|await|break|class|continue|def|del|elif|else|except|finally|for|from|global|if|import|in|is|lambda|nonlocal|not|or|pass|raise|return|try|while|with|yield)\\b"
|
||||||
# decorators
|
# decorators
|
||||||
- brightgreen: "@.*[(]"
|
- brightgreen: "@.*[(]"
|
||||||
# operators
|
# operators
|
||||||
|
|
Loading…
Reference in a new issue