zulip/tools/lib
adnrs96 a75c0dd248 Enhance template parser for comments, Fix deep nesting in Jinja2.
In this commit we add the ability of recognizing comments in
handlebar and Jinja2 templates to the template parser. This
fixes issue of template parser picking up code tags which are
commented out in files.
Also we fix the problem of too much deep nesting in the Jinja2
logic statement. Now only nested Jinja2 logic statements will get
a deeper indentation level.With this another fix was introduced
relating with the tags before a nested handlebar or django tag getting
wrong indent.
We also fix the issue with wrong offsets with closing tags in
cases if they were not matching indent level of the starting
tag intially.
Also we also start to ignore any tags occuring in between 'pre'
tags for deeper indent levels. As well we start to filter out django
non block tags from getting deeper indent level.
2017-03-11 15:16:44 -08:00
..
__init__.py
api_tests.py lint: Clean up E712 PEP-8 rule. 2017-01-23 21:11:18 -08:00
capitalization.py capitalization: Make it easier to ignore phrases. 2017-03-10 11:21:49 -08:00
css_parser.py css parser: Show line numbers for errors. 2017-02-01 10:02:03 -08:00
find_add_class.py mypy: Added Dict, List and Set imports. 2017-03-04 14:33:44 -08:00
html_branches.py mypy: Added Dict, List and Set imports. 2017-03-04 14:33:44 -08:00
html_grep.py mypy: Added Dict, List and Set imports. 2017-03-04 14:33:44 -08:00
pretty_print.py Enhance template parser for comments, Fix deep nesting in Jinja2. 2017-03-11 15:16:44 -08:00
provision.py Add wrapper and log file output for provisioning. 2017-01-17 14:23:28 -08:00
sanity_check.py tools: Create more consistent checks for venv. 2017-02-06 21:50:32 -08:00
template_parser.py Enhance template parser for comments, Fix deep nesting in Jinja2. 2017-03-11 15:16:44 -08:00
test_script.py Add wrapper and log file output for provisioning. 2017-01-17 14:23:28 -08:00
test_server.py Change bot domains to string_id.EXTERNAL_HOST. 2017-03-08 16:26:13 -08:00