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

Side by Side Diff: third_party/mojo/src/mojo/public/third_party/jinja2/lexer.py

Issue 814543006: Move //mojo/{public, edk} underneath //third_party (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years, 11 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 unified diff | Download patch
OLDNEW
1 # -*- coding: utf-8 -*- 1 # -*- coding: utf-8 -*-
2 """ 2 """
3 jinja2.lexer 3 jinja2.lexer
4 ~~~~~~~~~~~~ 4 ~~~~~~~~~~~~
5 5
6 This module implements a Jinja / Python combination lexer. The 6 This module implements a Jinja / Python combination lexer. The
7 `Lexer` class provided by this module is used to do some preprocessing 7 `Lexer` class provided by this module is used to do some preprocessing
8 for Jinja. 8 for Jinja.
9 9
10 On the one hand it filters out invalid operators like the bitshift 10 On the one hand it filters out invalid operators like the bitshift
(...skipping 713 matching lines...) Expand 10 before | Expand all | Expand 10 after
724 # if loop terminated without break we haven't found a single match 724 # if loop terminated without break we haven't found a single match
725 # either we are at the end of the file or we have a problem 725 # either we are at the end of the file or we have a problem
726 else: 726 else:
727 # end of text 727 # end of text
728 if pos >= source_length: 728 if pos >= source_length:
729 return 729 return
730 # something went wrong 730 # something went wrong
731 raise TemplateSyntaxError('unexpected char %r at %d' % 731 raise TemplateSyntaxError('unexpected char %r at %d' %
732 (source[pos], pos), lineno, 732 (source[pos], pos), lineno,
733 name, filename) 733 name, filename)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698