From b0f9697cd2ae9fa2ba796cba5a6c34f549ab67eb Mon Sep 17 00:00:00 2001 From: ath3 Date: Thu, 16 Dec 2021 23:54:56 +0100 Subject: [PATCH] Add indents.toml to perl --- book/src/generated/lang-support.md | 2 +- runtime/queries/perl/indents.toml | 17 +++++++++++++++++ 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 runtime/queries/perl/indents.toml diff --git a/book/src/generated/lang-support.md b/book/src/generated/lang-support.md index 80fb28a53322..80989e632a7c 100644 --- a/book/src/generated/lang-support.md +++ b/book/src/generated/lang-support.md @@ -23,7 +23,7 @@ | nix | ✓ | | ✓ | `rnix-lsp` | | ocaml | ✓ | | ✓ | | | ocaml-interface | ✓ | | | | -| perl | ✓ | ✓ | | | +| perl | ✓ | ✓ | ✓ | | | php | ✓ | | ✓ | | | prolog | | | | `swipl` | | protobuf | ✓ | | ✓ | | diff --git a/runtime/queries/perl/indents.toml b/runtime/queries/perl/indents.toml new file mode 100644 index 000000000000..365e0663601d --- /dev/null +++ b/runtime/queries/perl/indents.toml @@ -0,0 +1,17 @@ +indent = [ + "function", + "identifier", + "method_invocation", + "if_statement", + "unless_statement", + "if_simple_statement", + "unless_simple_statement", + "variable_declaration", + "block", + "list_item", + "word_list_qw" +] + +outdent = [ + "}" +]