Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Remove legacy parser code for single quote string handling.

  • Loading branch information...
commit 5fdae77a2ac007b30bd63806c71e10c7e20a8855 1 parent 06e668d
@Gozala authored
Showing with 0 additions and 6 deletions.
  1. +0 −6 lib/ls.js
View
6 lib/ls.js
@@ -41,7 +41,6 @@ var parse = function(code, filename) {
token = "",
special = "",
isString = false,
- isSingleString = false,
isEscape = false,
isJSObject = 0,
isListComplete = false,
@@ -88,10 +87,6 @@ var parse = function(code, filename) {
token += c;
continue;
}
- if (isSingleString) {
- token += c;
- continue;
- }
if (c == '{') {
isJSObject++;
token += c;
@@ -150,7 +145,6 @@ var parse = function(code, filename) {
token += c;
}
if (isString) throw handleError(3, tree._line, tree._filename);
- if (isSingleString) throw handleError(3, tree._line, tree._filename);
if (isJSObject > 0) throw handleError(7, tree._line, tree._filename);
if (!isListComplete) throw handleError(8, tree._line, tree._filename);
return tree;
Please sign in to comment.
Something went wrong with that request. Please try again.