diff --git a/lib/hyperscript/parser.sx b/lib/hyperscript/parser.sx index bdfedb21..5be81c1f 100644 --- a/lib/hyperscript/parser.sx +++ b/lib/hyperscript/parser.sx @@ -1227,7 +1227,7 @@ (= (tp-type) "attr") (let ((attr-name (get (adv!) "value"))) - (match-kw "]") + (when (= (tp-type) "bracket-close") (adv!)) (let ((tgt (if (match-kw "from") (parse-expr) nil))) (list (quote remove-attr) attr-name tgt)))