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
1 changed files with 1 additions and 1 deletions

View File

@ -70,7 +70,7 @@ export default _.extend({}, Base, {
var last = result.pop();
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.textValue += node.textValue;
last.elements[0].textValue += node.elements[0].textValue;