de0afbc51a72172b722a1323c363975c05115317
[idea/community.git] / python / testData / highlighting / async.py
1 <info descr="null">async</info> def <info descr="PY.FUNC_DEFINITION">foo</info>():
2     pass
3
4 async = 1
5
6 <info descr="null">async</info> def <info descr="PY.FUNC_DEFINITION">bar</info>():
7     pass
8
9
10 <info descr="null">async</info> def<error descr="'(' expected"><error descr="Identifier expected"> </error></error> # Incomplete<EOLError descr="':' expected"></EOLError>
11
12
13 <error descr="Indent expected">d</error>ef <info descr="PY.FUNC_DEFINITION">regular</info>(<info descr="PY.PARAMETER">xs</info>):
14
15     <info descr="null">async</info> def <info descr="PY.FUNC_DEFINITION">quux</info>():
16         <info descr="null">async</info> for x in xs:
17             pass
18
19         <info descr="null">async</info> with xs:
20             pass
21
22         <info descr="null">async</info> for x in xs:
23             pass
24
25     <error descr="'async' keyword is not expected here">async</error> with <info descr="PY.PARAMETER">xs</info>:
26         pass
27
28     return async