Permalink
Browse files

Fixed lexer line tracking.

  • Loading branch information...
dabeaz committed Apr 26, 2012
1 parent cc96f69 commit 708ff46356912aa05d8e30a5b84d837d7a65d3b2
Showing with 1 addition and 1 deletion.
  1. +1 −1 test/calclex.py
View
@@ -36,7 +36,7 @@ def t_NUMBER(t):
def t_newline(t):
r'\n+'
- t.lineno += t.value.count("\n")
+ t.lexer.lineno += t.value.count("\n")
def t_error(t):
print("Illegal character '%s'" % t.value[0])

0 comments on commit 708ff46

Please sign in to comment.