mirror of https://github.com/zulip/zulip.git
ba51078418
The CSS linter was pretty hard to reason about. It was pretty flexible about certain things, but then it would prevent seemingly innocuous code from getting checked in. This commit overhauls the pretty-printer to be more composable, where every object in the AST knows how to render itself. It also cleans up a little bit of the pre_fluff/post_fluff logic in the parser itself, so comments are more likely to be "attached" to the AST node that make sense. The linter is actually a bit more finicky about newlines, but this is mostly a good thing, as most of the variations before this commit were pretty arbitrary. |
||
---|---|---|
.. | ||
test_template_data | ||
__init__.py | ||
test_capitalization_checker.py | ||
test_css_parser.py | ||
test_html_branches.py | ||
test_linter_custom_check.py | ||
test_pretty_print.py | ||
test_template_parser.py |