Index: mojo/public/tools/bindings/pylib/parse/mojo_lexer.py |
diff --git a/mojo/public/tools/bindings/pylib/parse/mojo_lexer.py b/mojo/public/tools/bindings/pylib/parse/mojo_lexer.py |
index 8cd7a1f733c90d98c9f97254e9f8f1b214a0a492..6704ae1d3f65b33d9aa2d95d8a16935890fcc24c 100644 |
--- a/mojo/public/tools/bindings/pylib/parse/mojo_lexer.py |
+++ b/mojo/public/tools/bindings/pylib/parse/mojo_lexer.py |
@@ -172,7 +172,7 @@ class Lexer(object): |
# Newlines |
def t_NEWLINE(self, t): |
r'\n+' |
- t.lexer.lineno += t.value.count("\n") |
+ t.lexer.lineno += len(t.value) |
# Operators |
t_PLUS = r'\+' |