File tree Expand file tree Collapse file tree 3 files changed +10
-2
lines changed
Expand file tree Collapse file tree 3 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -449,7 +449,7 @@ local build_grammar = wrap_env(function()
449449 CompClause = CompFor + key " when" * Exp / mark " when" ,
450450
451451 Assign = sym " =" * (Ct (With + If + Switch ) + Ct (TableBlock + ExpListLow )) / mark " assign" ,
452- Update = ((sym " ..=" + sym " +=" + sym " -=" + sym " *=" + sym " /=" + sym " %=" ) / trim ) * Exp / mark " update" ,
452+ Update = ((sym " ..=" + sym " +=" + sym " -=" + sym " *=" + sym " /=" + sym " %=" + sym " or= " + sym " and= " ) / trim ) * Exp / mark " update" ,
453453
454454 -- we can ignore precedence for now
455455 OtherOps = op " or" + op " and" + op " <=" + op " >=" + op " ~=" + op " !=" + op " ==" + op " .." + op " <" + op " >" ,
Original file line number Diff line number Diff line change @@ -232,4 +232,9 @@ a /= func "cool"
232232x. then = " hello"
233233x. while . true = " hello"
234234
235+ --
236+
237+ x or= " hello"
238+ x and= " hello"
239+
235240-- cooool
Original file line number Diff line number Diff line change @@ -228,4 +228,7 @@ a = a * (3 + 5)
228228a = a * 3
229229a = a / func (" cool" )
230230x [" then" ] = " hello"
231- x [" while" ][" true" ] = " hello"
231+ x [" while" ][" true" ] = " hello"
232+ x = x or " hello"
233+ x = x and " hello"
234+ return x
You can’t perform that action at this time.
0 commit comments