summaryrefslogtreecommitdiff
path: root/vendor/queries/fortran/indents.scm
blob: 073d4f325c970d482a1d1856bd54ab57e886cf7e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
; Vendored from helix (https://github.com/helix-editor/helix) at 278b24389:
; runtime/queries/fortran/indents.scm.
; Licensed under the Mozilla Public License 2.0 (vendor/queries/helix.LICENSE,
; https://mozilla.org/MPL/2.0/).

[
  (module)
  (submodule)
  (program)
  (subroutine)
  (module_procedure)
  (function)
  ; (interface)
  (if_statement)
  (do_loop)
  (where_statement)
  (derived_type_definition)
  (enum)
] @indent

[
  (end_module_statement)
  (end_submodule_statement)
  (end_program_statement)
  (end_subroutine_statement)
  (end_module_procedure_statement)
  (end_function_statement)
  ; (end_interface_statement)
  (end_if_statement)
  (end_do_loop_statement)
  (else_clause)
  (elseif_clause)
  (end_type_statement)
  (end_enum_statement)
  (end_where_statement)
] @outdent