Skip to content

Commit db9b7ac

Browse files
committed
Replaces integer with variable type
1 parent 3cc7a87 commit db9b7ac

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

fortls/parse_fortran.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
from fortls.constants import (
1919
DO_TYPE_ID,
2020
INTERFACE_TYPE_ID,
21+
MODULE_TYPE_ID,
2122
SELECT_TYPE_ID,
2223
SUBMODULE_TYPE_ID,
2324
FRegex,
@@ -1610,7 +1611,7 @@ def parse(
16101611
if (len(obj_info.obj_names) == 0) and (obj_info.type == 1):
16111612
file_ast.current_scope.set_default_vis(-1)
16121613
else:
1613-
if obj_info.type == 1:
1614+
if obj_info.type == MODULE_TYPE_ID:
16141615
for word in obj_info.obj_names:
16151616
file_ast.add_private(word)
16161617
else:

0 commit comments

Comments
 (0)