Use splat instead of Array#unshift for attributes.

This commit is contained in:
Yorick Peterse 2015-02-24 10:08:16 +01:00
parent c528a0d6a7
commit cfc6749556
1 changed files with 1 additions and 5 deletions

View File

@ -158,11 +158,7 @@ element
attributes = attributes_ { on_attributes(val[0]) };
attributes_
= attribute attributes_
{
val[1].unshift(val[0]) if val[0]
val[1]
}
= attribute attributes_ { val[0] ? [val[0], *val[1]] : val[1] }
| _
;