Fixing bug with concatenation of literals

This commit is contained in:
Jeff Avallone 2014-12-06 15:46:46 -05:00
parent d2b96c7833
commit 41c11ad5d4

View File

@ -70,7 +70,7 @@ export default _.extend({}, Base, {
var last = result.pop(); var last = result.pop();
if (last) { if (last) {
if (node.elements[0].type === 'terminal' && last.elements[0].type === 'terminal' && last.elements[1].textValue === '') { if (node.elements[0].type === 'terminal' && node.elements[1].textValue === '' && last.elements[0].type === 'terminal' && last.elements[1].textValue === '') {
last = _.clone(last, true); last = _.clone(last, true);
last.textValue += node.textValue; last.textValue += node.textValue;
last.elements[0].textValue += node.elements[0].textValue; last.elements[0].textValue += node.elements[0].textValue;