(derived_type_definition) @local.scope
(program) @local.scope
(module) @local.scope
(submodule) @local.scope
(interface) @local.scope
(function) @local.scope
(subroutine) @local.scope
(block_construct) @local.scope

(variable_declaration declarator: (identifier) @local.definition)
