aboutsummaryrefslogtreecommitdiff
path: root/runtime/queries/fortran/indents.scm
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/queries/fortran/indents.scm')
-rw-r--r--runtime/queries/fortran/indents.scm27
1 files changed, 27 insertions, 0 deletions
diff --git a/runtime/queries/fortran/indents.scm b/runtime/queries/fortran/indents.scm
new file mode 100644
index 00000000..daa8bac1
--- /dev/null
+++ b/runtime/queries/fortran/indents.scm
@@ -0,0 +1,27 @@
+[
+ (module)
+ (program)
+ (subroutine)
+ (function)
+ ; (interface)
+ (if_statement)
+ (do_loop_statement)
+ (where_statement)
+ (derived_type_definition)
+ (enum)
+] @indent
+
+[
+ (end_module_statement)
+ (end_program_statement)
+ (end_subroutine_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 \ No newline at end of file