File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -5,15 +5,15 @@ class Liquid < Scanner
5
5
6
6
register_for :liquid
7
7
8
- DIRECTIVE_KEYWORDS = /paginate|endlist|list|endfor|for|endwrap|wrap|endif|if|endunless|unless|elsif|assignlist|assign|cycle|capture|end|capture|fill|endiflist|iflist|else/
8
+ DIRECTIVE_KEYWORDS = /endcode|code|endpaginate|endtablerow|tablerow|endifchanged|ifchanged|endcomment|comment|endcache|cache|endexpire|expire| paginate|endlist|list|endfor|for|endwrap|wrap|endif|if|endunless|unless|elsif|assignlist|assign|cycle|capture|end|capture|fill|endiflist|iflist|else/
9
9
10
10
MATH = /==|=|!=|>|<=|<|>|\+ /
11
11
12
12
DIRECTIVE_PREPOSITIONS = /contains|in|#{ MATH } /
13
13
14
14
FILTER_WITH_VALUE_KEYWORDS = /date|replace_first|replace|remove_first|remove_first|remove|minus|times|divided_by|modulo|mod|split|join|truncatewords|truncate|prepend|append/
15
15
16
- FILTER_KEYWORDS = /#{ FILTER_WITH_VALUE_KEYWORDS } |textilize|capitalize|downcase|upcase|first|last|sort|map|size|escape_once|escape|strip_html|strip_newlines|newline_to_br/
16
+ FILTER_KEYWORDS = /#{ FILTER_WITH_VALUE_KEYWORDS } |slugify|uri_escape|render|code| textilize|capitalize|downcase|upcase|first|last|sort|map|size|escape_once|escape|strip_html|strip_newlines|newline_to_br/
17
17
18
18
SELECTOR_KEYWORDS = /tagged|in|with|snippet|script|content_item|folder|widget|wrapper|category|asset_folder|asset/
19
19
You can’t perform that action at this time.
0 commit comments