Files
openide/python/testData/highlighting/async.py
Daniil Kalinin 2647a25fd7 Fix for the broken test affected by 86861f573d66abd3d9100de1ebed59513838a24d
GitOrigin-RevId: 4e6d81aeccaee471568b0cff57aaba4876df0664
2021-12-16 11:22:27 +00:00

29 lines
1.0 KiB
Python

<info descr="null">async</info> def <info descr="PY.FUNC_DEFINITION">foo</info>():
pass
async = 1
<info descr="null">async</info> def <info descr="PY.FUNC_DEFINITION">bar</info>():
pass
<info descr="null">async</info> def<error descr="'(' expected"><error descr="Identifier expected"> </error></error> # Incomplete<EOLError descr="':' expected"></EOLError>
<error descr="Indent expected">d</error>ef <info descr="PY.FUNC_DEFINITION">regular</info>(<info descr="PY.PARAMETER">xs</info>):
<info descr="null">async</info> def <info descr="PY.NESTED_FUNC_DEFINITION">quux</info>():
<info descr="null">async</info> for x in <info descr="PY.PARAMETER">xs</info>:
pass
<info descr="null">async</info> with <info descr="PY.PARAMETER">xs</info>:
pass
<info descr="null">async</info> for x in <info descr="PY.PARAMETER">xs</info>:
pass
<error descr="'async' keyword is not expected here">async</error> with <info descr="PY.PARAMETER">xs</info>:
pass
return async