summaryrefslogtreecommitdiff
path: root/vendor/queries/fortran/indents.scm
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/queries/fortran/indents.scm')
-rw-r--r--vendor/queries/fortran/indents.scm36
1 files changed, 36 insertions, 0 deletions
diff --git a/vendor/queries/fortran/indents.scm b/vendor/queries/fortran/indents.scm
new file mode 100644
index 00000000..073d4f32
--- /dev/null
+++ b/vendor/queries/fortran/indents.scm
@@ -0,0 +1,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