mirror of
https://github.com/davidhalter/parso.git
synced 2026-10-08 13:05:13 +08:00
async is actually a token that cannot appear in brackets
This commit is contained in:
1 parent
bcf76949b6
commit
67ebb6acac
2 files changed
+24
No files matched your search
@@ -258,6 +258,8 @@ def _create_token_collection(version_info):
|
||||
|
||||
ALWAYS_BREAK_TOKENS = (';', 'import', 'class', 'def', 'try', 'except',
|
||||
'finally', 'while', 'with', 'return')
|
||||
if version_info >= (3, 5):
|
||||
ALWAYS_BREAK_TOKENS += ('async',)
|
||||
pseudo_token_compiled = _compile(PseudoToken)
|
||||
return TokenCollection(
|
||||
pseudo_token_compiled, single_quoted, triple_quoted, endpats,
|
||||
|
||||
Reference in new issue
Block a user