diff --git a/pcpp/parser.py b/pcpp/parser.py index 8e6a10a..bdfc819 100644 --- a/pcpp/parser.py +++ b/pcpp/parser.py @@ -131,7 +131,6 @@ def t_CPP_STRING(t): # Character constant 'c' or L'c' def t_CPP_CHAR(t): r'(L)?\'([^\\\n]|(\\(.|\n)))*?\'' - t.lexer.lineno += t.value.count("\n") return t # Comment