aboutsummaryrefslogtreecommitdiffstats
path: root/runtime/queries/puppet/indents.scm
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/queries/puppet/indents.scm')
-rw-r--r--runtime/queries/puppet/indents.scm23
1 files changed, 23 insertions, 0 deletions
diff --git a/runtime/queries/puppet/indents.scm b/runtime/queries/puppet/indents.scm
new file mode 100644
index 000000000..71c882f33
--- /dev/null
+++ b/runtime/queries/puppet/indents.scm
@@ -0,0 +1,23 @@
+[
+ (block)
+ (defined_resource_type)
+ (parameter_list)
+ (attribute_type_entry)
+ (resource_declaration)
+ (selector)
+ (case_statement)
+ (hash)
+ (array)
+] @indent.begin
+
+[
+ "}"
+ "]"
+ ")"
+] @indent.branch @indent.end
+
+[
+ (string)
+ (comment)
+ (ERROR)
+] @indent.auto