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. |
||
---|---|---|
.. | ||
__init__.py | ||
api_tests.py | ||
capitalization.py | ||
css_parser.py | ||
find_add_class.py | ||
gitlint-rules.py | ||
graph.py | ||
html_branches.py | ||
html_grep.py | ||
pretty_print.py | ||
provision.py | ||
sanity_check.py | ||
template_parser.py | ||
test_script.py | ||
test_server.py |