Commits

joseanpg  committed c7b6564

Update src/lexer.js

Fixed STRING regular expression (quote forgotten)

  • Participants
  • Parent commits 53252cc

Comments (0)

Files changed (1)

File src/lexer.js

 );
 
 var NUMBER = /^-?[0-9]+(\.[0-9]+)?/;
-var STRING = /^("|')(?:[^"\\]|\\.)*\1/;
+var STRING = /^("|')(?:[^"'\\]|\\.)*\1/;
 var COMMENT = /^\/\/.*/;
 var WHITESPACE = /^[^\n\S]+/;
 var INDENT = /^(?:\n[^\n\S]*)+/;