Skip to content
Myr

Merge pull request #312 from fengsp/master

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Removed duplication from ignored_tokens in lexer

authored by Armin Ronacher · committed by Armin Ronacher · parents fff365e, 7c83462 · Browse files · 1 file+2 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+2 added−2 removed

  • other:+2 added−2 removed

1 file+2 added−2 removed

modified:jinja2/lexer.py+2 added-2 removed
134 unmodified lines
135 sorted(operators, key=lambda x: -len(x))))136137ignored_tokens = frozenset([TOKEN_COMMENT_BEGIN, TOKEN_COMMENT,138 TOKEN_COMMENT_END, TOKEN_WHITESPACE,139 TOKEN_WHITESPACE, TOKEN_LINECOMMENT_BEGIN,140 TOKEN_LINECOMMENT_END, TOKEN_LINECOMMENT])139 TOKEN_LINECOMMENT_BEGIN, TOKEN_LINECOMMENT_END,140 TOKEN_LINECOMMENT])141ignore_if_empty = frozenset([TOKEN_WHITESPACE, TOKEN_DATA,142 TOKEN_COMMENT, TOKEN_LINECOMMENT])143144
590 unmodified lines