Skip to content

Commit

Permalink
More permissive regexp for assignment lexerization
Browse files Browse the repository at this point in the history
  • Loading branch information
rauchg committed Oct 1, 2011
1 parent 14991c6 commit 245301c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/lexer.js
Expand Up @@ -270,7 +270,7 @@ Lexer.prototype = {

assignment: function() {
var captures;
if (captures = /^(\w+) += *([^\n]+)/.exec(this.input)) {
if (captures = /^(\w+) += *([^ ;\n]+)( *;? *\n?)/.exec(this.input)) {
this.consume(captures[0].length);
var name = captures[1]
, val = captures[2];
Expand Down

0 comments on commit 245301c

Please sign in to comment.