Index: lib/src/prism/tests/languages/handlebars/block_feature.test |
diff --git a/lib/src/prism/tests/languages/handlebars/block_feature.test b/lib/src/prism/tests/languages/handlebars/block_feature.test |
new file mode 100644 |
index 0000000000000000000000000000000000000000..dd2c74e9c78cd0a234ad709a4d630819036a0634 |
--- /dev/null |
+++ b/lib/src/prism/tests/languages/handlebars/block_feature.test |
@@ -0,0 +1,23 @@ |
+{{#each comments}}{{/each}} |
+{{~#if isActive~}}{{~/if~}} |
+ |
+---------------------------------------------------- |
+ |
+[ |
+ ["handlebars", [ |
+ ["delimiter", "{{"], ["block", "#each"], ["variable", "comments"], ["delimiter", "}}"] |
+ ]], |
+ ["handlebars", [ |
+ ["delimiter", "{{"], ["block", "/each"], ["delimiter", "}}"] |
+ ]], |
+ ["handlebars", [ |
+ ["delimiter", "{{"], ["punctuation", "~"], ["block", "#if"], ["variable", "isActive"], ["punctuation", "~"], ["delimiter", "}}"] |
+ ]], |
+ ["handlebars", [ |
+ ["delimiter", "{{"], ["punctuation", "~"], ["block", "/if"], ["punctuation", "~"], ["delimiter", "}}"] |
+ ]] |
+] |
+ |
+---------------------------------------------------- |
+ |
+Checks for block helpers. |