summaryrefslogtreecommitdiff
path: root/src/jinja2/lexer.py
Commit message (Collapse)AuthorAgeFilesLines
* Split lines in lexer only by \r\n, \r and \nMatěj Volf2021-04-051-5/+10
| | | | | | | | | | | | Python str.splitlines() splits by more characters[1], which, however, causes problems when keeping these special characters in processed templates is desirable, i.e. these bug reports: #769, #952, #1313. The keep_trailing_newlines logic is reworked because splitlines() removes them already (so they had to be added), while re.split doesn't so they have to be removed. [1] https://docs.python.org/3/library/stdtypes.html#str.splitlines
* parse hex, octal, and binary integer literalsAlex Mykyta2021-04-051-2/+17
|
* ignore trim_blocks using '+%}'Amy2020-06-221-4/+8
|
* Merge branch '2.11.x'David Lord2020-04-131-5/+8
|\
| * Fix unintended lstrip_blocks behavior. Fixes #1138Peter Dolak2020-04-131-5/+8
| | | | | | | | | | Introduced in #858. Tests will follow, also results of performance testing.
* | Merge branch '2.11.x'David Lord2020-03-301-2/+6
|\ \ | |/
| * Fix tokens line number calculation when whitespace stripping is usedAndrey Lisin2020-03-301-2/+6
| |
* | apply pyupgrade and f-stringsDavid Lord2020-02-051-77/+43
| |
* | remove more compat codeDavid Lord2020-02-051-15/+2
| |
* | remove _compat moduleDavid Lord2020-02-051-11/+5
| |
* | remove Python 2 from docsDavid Lord2020-02-051-1/+3
|/
* Revert "rename directory to jinja"revert-renameDavid Lord2020-01-261-0/+841
| | | | This reverts commit eac9acb7aeabf6f3e0ed4cb876e200e5e72d0d0e.
* rename directory to jinjaDavid Lord2020-01-101-841/+0
|
* simplify module docstringsstyleDavid Lord2020-01-101-14/+4
|
* more relative importsDavid Lord2020-01-101-13/+4
| | | | | _identifier exports a compiled regex instead of a string to avoid some tricky cleanup
* apply flake8David Lord2020-01-101-2/+4
|
* apply blackDavid Lord2020-01-101-246/+335
|
* apply reorder-python-importsDavid Lord2020-01-101-3/+6
|
* move to src directoryDavid Lord2020-01-091-0/+766