| 1 | |
| 2 | #? ['raise'] |
| 3 | raise |
| 4 | |
| 5 | # python >= 3.11 |
| 6 | #? ['Exception', 'ExceptionGroup'] |
| 7 | except |
| 8 | |
| 9 | #? [] |
| 10 | b + continu |
| 11 | |
| 12 | #? [] |
| 13 | b + continue |
| 14 | |
| 15 | #? ['continue'] |
| 16 | b; continue |
| 17 | |
| 18 | #? ['continue'] |
| 19 | b; continu |
| 20 | |
| 21 | #? [] |
| 22 | c + pass |
| 23 | |
| 24 | #? [] |
| 25 | a + pass |
| 26 | |
| 27 | #? ['pass'] |
| 28 | b; pass |
| 29 | |
| 30 | # ----------------- |
| 31 | # Keywords should not appear everywhere. |
| 32 | # ----------------- |
| 33 | |
| 34 | #? [] |
| 35 | with open() as f |
| 36 | #? [] |
| 37 | def i |
| 38 | #? [] |
| 39 | class i |
| 40 | |
| 41 | #? [] |
| 42 | continue i |
| 43 | |
| 44 | # More syntax details, e.g. while only after newline, but not after semicolon, |
| 45 | # continue also after semicolon |
| 46 | #? ['while'] |
| 47 | while |
| 48 | #? [] |
| 49 | x while |
| 50 | #? [] |
| 51 | x; while |
| 52 | #? ['continue'] |
| 53 | x; continue |
| 54 | |
| 55 | #? [] |
| 56 | and |
| 57 | #? ['and'] |
| 58 | x and |
| 59 | #? [] |
| 60 | x * and |