Skip to content

Commit

Permalink
Bug with yylloc column number
Browse files Browse the repository at this point in the history
  • Loading branch information
zaach committed Apr 11, 2011
1 parent de68817 commit db88b22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/jison/lexer.js
Expand Up @@ -214,7 +214,7 @@ RegExpLexer.prototype = {
this.yylloc = {first_line: this.yylloc.last_line,
last_line: this.yylineno+1,
first_column: this.yylloc.last_column,
last_column: lines ? lines[lines.length-1].length-1 : this.yylloc.last_column + match.length}
last_column: lines ? lines[lines.length-1].length-1 : this.yylloc.last_column + match[0].length}
this.yytext += match[0];
this.match += match[0];
this.matches = match;
Expand Down

0 comments on commit db88b22

Please sign in to comment.