diff --git a/settings/PHP-twig.json b/settings/PHP-twig.json index b69b8cf..6da4390 100644 --- a/settings/PHP-twig.json +++ b/settings/PHP-twig.json @@ -26,6 +26,7 @@ "endfor", "macro", "endmacro", + "dump", "raw", "endraw", "sandbox", @@ -79,7 +80,6 @@ "constant", "cycle", "divisibleby", - "dump", "parent", "random", "range", diff --git a/snippets/PHP-twig.cson b/snippets/PHP-twig.cson index dc0e20b..a47ae09 100644 --- a/snippets/PHP-twig.cson +++ b/snippets/PHP-twig.cson @@ -5,6 +5,9 @@ 'block': 'prefix': 'block' 'body': '{% block ${1:name} %}$0{% endblock %}' + 'dump': + 'prefix': 'dump' + 'body': '
\n{{ dump(${1:var})}}\n
' 'autoescape': 'prefix': 'autoescape' 'body': '{% autoescape ${1} %}$0{% endautoescape %}'