File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44
55module Liquid
66 class BlockBody
7- LiquidTagToken = /\A \s *(\w +|# )\s *(.*?)\z /o
8- FullToken = /\A #{ TagStart } #{ WhitespaceControl } ?(\s *)(\w +|# )(\s *)(.*?)#{ WhitespaceControl } ?#{ TagEnd } \z /om
7+ LiquidTagToken = /\A \s *([ \w #]+ )\s *(.*?)\z /o
8+ FullToken = /\A #{ TagStart } #{ WhitespaceControl } ?(\s *)([ \w #]+ )(\s *)(.*?)#{ WhitespaceControl } ?#{ TagEnd } \z /om
99 ContentOfVariable = /\A #{ VariableStart } #{ WhitespaceControl } ?(.*?)#{ WhitespaceControl } ?#{ VariableEnd } \z /om
1010 WhitespaceOrNothing = /\A \s *\z /
1111 TAGSTART = "{%"
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ def test_inside_liquid_tag
2121 end
2222
2323 def test_no_space_after_hash_symbol
24- assert_template_result ( '' , '{% #immediate text %}' )
25- assert_template_result ( '' , '{% liquid #immediate text %}' )
24+ assert_match_syntax_error ( /Unknown tag '#immediate'/ , '{% #immediate text %}' )
25+ assert_match_syntax_error ( /Unknown tag '#immediate'/ , '{% liquid #immediate text %}' )
2626 end
2727end
You can’t perform that action at this time.
0 commit comments