Commit 4f60494
committed
Python: Support assignments of the form
Surprisingly, the new parser did not support these constructs (and the
relevant test was missing this case), so on files that required the new
parser we were unable to parse this construct.
To fix it, we add `list_pattern` (not to be confused with
`pattern_list`) as a `tree-sitter-python` node that results in a `List`
node in the AST.[x,y,z] = w
1 parent 89ea4b8 commit 4f60494
File tree
2 files changed
+9
-0
lines changed- python/extractor
- tests/parser
- tsg-python
2 files changed
+9
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
| 18 | + | |
17 | 19 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
28 | 31 | | |
29 | 32 | | |
30 | 33 | | |
| |||
3436 | 3439 | | |
3437 | 3440 | | |
3438 | 3441 | | |
| 3442 | + | |
| 3443 | + | |
| 3444 | + | |
3439 | 3445 | | |
3440 | 3446 | | |
3441 | 3447 | | |
| |||
3472 | 3478 | | |
3473 | 3479 | | |
3474 | 3480 | | |
| 3481 | + | |
3475 | 3482 | | |
3476 | 3483 | | |
3477 | 3484 | | |
| |||
0 commit comments