Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(972)

Unified Diff: mojo/public/tools/bindings/pylib/parse/mojo_lexer.py

Issue 226983002: Mojo: Mojom: Test the parser when there's no module declared. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | mojo/public/tools/bindings/pylib/parse/mojo_parser.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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'\+'
« no previous file with comments | « no previous file | mojo/public/tools/bindings/pylib/parse/mojo_parser.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698