aboutsummaryrefslogtreecommitdiff
path: root/runtime/queries/php
diff options
context:
space:
mode:
authorDaniel Poulin2021-11-01 14:41:55 +0000
committerBlaž Hrastnik2021-11-02 08:53:24 +0000
commit9e247bf6eef34978d66cdcee535da5e4f5ba13e9 (patch)
tree4762b398f8877440e5ed30a89113df122d9a1ef9 /runtime/queries/php
parent924b7d3b192915f0a56393bb2a78318e39f1a151 (diff)
Add indents definition based on the one from nvim-treesitter
Diffstat (limited to 'runtime/queries/php')
-rw-r--r--runtime/queries/php/indents.toml17
1 files changed, 17 insertions, 0 deletions
diff --git a/runtime/queries/php/indents.toml b/runtime/queries/php/indents.toml
new file mode 100644
index 00000000..85c104db
--- /dev/null
+++ b/runtime/queries/php/indents.toml
@@ -0,0 +1,17 @@
+indent = [
+ "array_creation_expression",
+ "arguments",
+ "formal_parameters",
+ "compound_statement",
+ "declaration_list",
+ "binary_expression",
+ "return_statement",
+ "expression_statement",
+ "switch_block",
+ "anonymous_function_use_clause",
+]
+
+oudent = [
+ "}",
+ ")",
+]