mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-20 04:10:06 -04:00
feat(fortran): Support indentation
This commit is contained in:
parent
6b6bf4db3f
commit
038fe717ea
1 changed files with 27 additions and 0 deletions
27
queries/fortran/indents.scm
Normal file
27
queries/fortran/indents.scm
Normal file
|
|
@ -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)
|
||||||
|
] @branch
|
||||||
Loading…
Add table
Add a link
Reference in a new issue