decaffeinate-parser
Advanced tools
Comparing version 1.2.21 to 1.2.22
@@ -1154,3 +1154,4 @@ import * as CoffeeScript from 'coffee-script'; | ||
if (node.locationData) { | ||
if (node.locationData && type(node) !== 'Literal') { | ||
// should't trim Literal, i.e. "(". | ||
trimNonMatchingParentheses(source, node.locationData, mapper); | ||
@@ -1865,3 +1866,3 @@ } | ||
expressions.push(element); | ||
} else if (element.data && element.data.search(/^"(.*?)"$/) === 0) { | ||
} else if (/^"(.*?)"$/.test(element.data)) { | ||
quasis.push(buildQuasiWithString(element.range, element.raw)); | ||
@@ -1868,0 +1869,0 @@ } else if (quasis.length < expressions.length + 1) { |
{ | ||
"name": "decaffeinate-parser", | ||
"version": "1.2.21", | ||
"version": "1.2.22", | ||
"description": "A better AST for CoffeeScript, inspired by CoffeeScriptRedux.", | ||
@@ -34,3 +34,3 @@ "main": "dist/decaffeinate-parser.umd.js", | ||
"mocha": "^2.4.5", | ||
"rollup": "^0.25.8", | ||
"rollup": "^0.26.3", | ||
"rollup-plugin-babel": "^2.4.0", | ||
@@ -37,0 +37,0 @@ "string-repeat": "^1.1.1" |
Sorry, the diff of this file is too big to display
135831
3664