diff --git a/CHANGELOG.md b/CHANGELOG.md index aa57f4b0..50f0fed4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,13 @@ ## Unreleased +## 3.1.2 + +### Fixed + +- Fixed incorrect document symbol for `SUBMODULE` statements + ([#413](https://github.com/fortran-lang/fortls/issues/413)) + ## 3.1.1 ### Fixed diff --git a/fortls/langserver.py b/fortls/langserver.py index 8ecbce1c..b6a1982e 100644 --- a/fortls/langserver.py +++ b/fortls/langserver.py @@ -279,7 +279,7 @@ def map_types(type): def serve_document_symbols(self, request: dict): def map_types(type, in_class: bool = False): - if type == 1: + if type in (1, 8): return 2 elif type in (2, 3): if in_class: