Permalink
Browse files

Remove legacy parser code for single quote string handling.

  • Loading branch information...
Gozala committed Aug 26, 2012
1 parent 06e668d commit 5fdae77a2ac007b30bd63806c71e10c7e20a8855
Showing with 0 additions and 6 deletions.
  1. +0 −6 lib/ls.js
View
@@ -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;

0 comments on commit 5fdae77

Please sign in to comment.