File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed
Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -311,6 +311,8 @@ local build_grammar = wrap_env(function()
311311
312312 Comprehension = sym " [" * Exp * CompInner * sym " ]" / mark " comprehension" ,
313313
314+ TblComprehension = sym " {" * Exp * (sym " ," * Exp )^- 1 * CompInner * sym " }" / mark " tblcomprehension" ,
315+
314316 CompInner = Ct (CompFor * CompClause ^ 0 ),
315317 CompFor = key " for" * Ct (NameList ) * key " in" * (sym " *" * Exp / mark " unpack" + Exp ) / mark " for" ,
316318 CompClause = CompFor + key " when" * Exp / mark " when" ,
@@ -337,6 +339,7 @@ local build_grammar = wrap_env(function()
337339 sym " -" * - SomeSpace * Exp / mark " minus" +
338340 sym " #" * Exp / mark " length" +
339341 key " not" * Exp / mark " not" +
342+ TblComprehension +
340343 TableLit +
341344 Comprehension +
342345 Assign + Update + FunLit + String +
You can’t perform that action at this time.
0 commit comments