mirror of
https://github.com/haml/haml.git
synced 2022-11-09 12:33:31 -05:00
b09e4589ad
* Fix bug in filter parsing A filter with no associated block wasn't being parsed properly, causing issues in any following code. * Dispatch haml_comment direct from process_line rather than silent_script. Syntactically it is a script with a comment, but the way it is handled is sufficiently different (especially with a block) to be dispatched as its own type. * Unify how haml_comment and filters are handled in the parser. Filters and comments with blocks are basically the same, the block isn't parsed (and so can have arbitrary indentation), so combine how they are handled in the parser. Remove special handling for haml_comment (e.g. @haml_comment variable), it now uses the same as filters (e.g. @flat). This means the text of the comment is now included in the parse tree (previously it was omitted). Fixes #840 and #838 (the latter more as a side effect). |
||
---|---|---|
.. | ||
erb | ||
gemfiles | ||
haml-spec@519e0703fc | ||
markaby | ||
mocks | ||
results | ||
templates | ||
engine_test.rb | ||
filters_test.rb | ||
helper_test.rb | ||
parser_test.rb | ||
template_test.rb | ||
test_helper.rb | ||
util_test.rb |