mirror of
https://github.com/Shopify/liquid.git
synced 2026-09-16 17:30:43 -07:00
Literal
- added support for literals [closes #6] Code beautifier - indented some files
This commit is contained in:
@@ -41,4 +41,8 @@ class RegexpTest < Test::Unit::TestCase
|
||||
assert_equal ['var', '["method"]', '[0]'], 'var["method"][0]'.scan(VariableParser)
|
||||
assert_equal ['var', '[method]', '[0]', 'method'], 'var[method][0].method'.scan(VariableParser)
|
||||
end
|
||||
|
||||
def test_literal_shorthand_regexp
|
||||
assert_match "{{{ {% if 'gnomeslab' contains 'liquid' %}yes{% endif %} }}}", LiteralShorthand
|
||||
end
|
||||
end # RegexpTest
|
||||
|
||||
Reference in New Issue
Block a user