diff options
author | ath3 | 2021-12-17 00:56:07 +0000 |
---|---|---|
committer | GitHub | 2021-12-17 00:56:07 +0000 |
commit | a8060c06d14935d18e27fcb64b8a58ae6dc5eaf3 (patch) | |
tree | 1b8c5b39c1f0efe3e31465389cb3b49ff4718514 | |
parent | 0c447151cf1af82be2e851a56430699f5fae549b (diff) |
Add indents.toml to perl (#1280)
-rw-r--r-- | book/src/generated/lang-support.md | 2 | ||||
-rw-r--r-- | runtime/queries/perl/indents.toml | 17 |
2 files changed, 18 insertions, 1 deletions
diff --git a/book/src/generated/lang-support.md b/book/src/generated/lang-support.md index 80fb28a5..80989e63 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 00000000..365e0663 --- /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 = [ + "}" +] |