File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -1031,28 +1031,28 @@ module.exports = grammar({
10311031
10321032 list_comprehension : $ => seq (
10331033 '[' ,
1034- field ( 'body' , $ . expression ) ,
1034+ field ( 'body' , choice ( $ . expression , $ . list_splat ) ) ,
10351035 $ . _comprehension_clauses ,
10361036 ']'
10371037 ) ,
10381038
10391039 dictionary_comprehension : $ => seq (
10401040 '{' ,
1041- field ( 'body' , $ . pair ) ,
1041+ field ( 'body' , choice ( $ . pair , $ . dictionary_splat ) ) ,
10421042 $ . _comprehension_clauses ,
10431043 '}'
10441044 ) ,
10451045
10461046 set_comprehension : $ => seq (
10471047 '{' ,
1048- field ( 'body' , $ . expression ) ,
1048+ field ( 'body' , choice ( $ . expression , $ . list_splat ) ) ,
10491049 $ . _comprehension_clauses ,
10501050 '}'
10511051 ) ,
10521052
10531053 generator_expression : $ => seq (
10541054 '(' ,
1055- field ( 'body' , $ . expression ) ,
1055+ field ( 'body' , choice ( $ . expression , $ . list_splat ) ) ,
10561056 $ . _comprehension_clauses ,
10571057 ')'
10581058 ) ,
You can’t perform that action at this time.
0 commit comments