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

Unified Diff: tools/idl_parser/idl_lexer.py

Issue 13498002: Add WebIDL compliant parser plus tests (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge using updated lexer, fix error msgs Created 7 years, 8 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 | tools/idl_parser/idl_node.py » ('j') | tools/idl_parser/idl_node.py » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/idl_parser/idl_lexer.py
diff --git a/tools/idl_parser/idl_lexer.py b/tools/idl_parser/idl_lexer.py
index 9a07ac6adc14f32760621c3e9c01669584cae80e..316534f00da846072f37707ce634c1df6e7b62ad 100755
--- a/tools/idl_parser/idl_lexer.py
+++ b/tools/idl_parser/idl_lexer.py
@@ -229,6 +229,7 @@ class IDLLexer(object):
return outlist
def Tokenize(self, data, filename='__no_file__'):
+ self.lexobj.lineno = 1
self.lexobj.filename = filename
self.lexobj.input(data)
self.lines = data.split('\n')
« no previous file with comments | « no previous file | tools/idl_parser/idl_node.py » ('j') | tools/idl_parser/idl_node.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698