Removed useless string allocs from the XML parser.

This commit is contained in:
Yorick Peterse 2015-02-17 09:37:38 +01:00
parent fdcd712ffe
commit a5cd75cb7e
1 changed files with 9 additions and 3 deletions

View File

@ -212,12 +212,18 @@ string_squote_follow
;
string_body
= T_STRING_BODY string_body_follow { val[0] + val[1] }
= T_STRING_BODY string_body_follow
{
val[1] ? val[0] + val[1] : val[0]
}
;
string_body_follow
= T_STRING_BODY string_body_follow { val[0] + val[1] }
| _ { '' }
= T_STRING_BODY string_body_follow
{
val[1] ? val[0] + val[1] : val[0]
}
| _ { nil }
;
%inner