1
0
Fork 0
mirror of https://github.com/haml/haml.git synced 2022-11-09 12:33:31 -05:00
haml--haml/test
Matt Wildig b09e4589ad Unify filter and haml_comment parsing
* 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).
2015-03-18 18:38:31 +00:00
..
erb Fix benchmark script 2012-04-27 22:39:47 -03:00
gemfiles Test rails 4.2 2015-01-08 15:23:53 -07:00
haml-spec@519e0703fc Make HTML5 the default output format everywhere. 2012-06-26 11:41:59 -03:00
markaby Moved tests out of Haml directory 2012-04-26 17:41:54 -03:00
mocks Moved tests out of Haml directory 2012-04-26 17:41:54 -03:00
results Don't lstrip ESCAPEd text 2014-07-09 14:28:44 +09:00
templates Don't lstrip ESCAPEd text 2014-07-09 14:28:44 +09:00
engine_test.rb Fix interpolated comments breaking tabulation 2014-11-19 16:04:02 +00:00
filters_test.rb Is this what you mean? 2015-02-28 16:21:19 +09:00
helper_test.rb Fix regexp in test for Rails 4.2 forms 2014-12-01 10:51:16 -03:00
parser_test.rb Unify filter and haml_comment parsing 2015-03-18 18:38:31 +00:00
template_test.rb Reduce String allocations where accessing ivars 2014-10-08 23:13:44 +09:00
test_helper.rb Merge branch 'stable' 2014-12-01 10:14:48 -03:00
util_test.rb Remove some dead code from Haml::Util 2014-12-01 13:53:42 -03:00