Skip to content

Commit

Permalink
Add indents.toml to perl (helix-editor#1280)
Browse files Browse the repository at this point in the history
  • Loading branch information
ath3 authored Dec 17, 2021
1 parent 0c44715 commit a8060c0
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
2 changes: 1 addition & 1 deletion book/src/generated/lang-support.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
| nix || || `rnix-lsp` |
| ocaml || || |
| ocaml-interface || | | |
| perl ||| | |
| perl ||| | |
| php || || |
| prolog | | | | `swipl` |
| protobuf || || |
Expand Down
17 changes: 17 additions & 0 deletions runtime/queries/perl/indents.toml
Original file line number Diff line number Diff line change
@@ -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 = [
"}"
]

0 comments on commit a8060c0

Please sign in to comment.