Removed useless string allocs from the XML parser.

This commit is contained in:
Yorick Peterse committed 2015-03-21 01:22:59 +01:00
1 parent fdcd712ffe
commit a5cd75cb7e
1 file changed
+9 -3
+9 -3
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