Removed useless string allocs from the XML parser.
This commit is contained in:
parent
fdcd712ffe
commit
a5cd75cb7e
|
@ -212,12 +212,18 @@ string_squote_follow
|
||||||
;
|
;
|
||||||
|
|
||||||
string_body
|
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
|
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
|
%inner
|
||||||
|
|
Loading…
Reference in New Issue