Skip to content

Commit a0f516e

Browse files
committed
Fixes Error during parsing #207
The regex for submodule parent names was too greedy only matching patterns at the start of the string.
1 parent 6de6684 commit a0f516e

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

CHANGELOG.md

+7
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# CHANGELONG
22

3+
## 1.14.2
4+
5+
### Fixes
6+
7+
* Fixes error while parsing submodule parent name with spaces
8+
([#207](https://github.com/hansec/fortran-language-server/issues/207))
9+
310
## 1.14.1
411

512
### Fixes

fortls/parse_fortran.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -693,7 +693,7 @@ def read_submod_def(line):
693693
else:
694694
trailing_line = ""
695695
#
696-
name_match = WORD_REGEX.match(trailing_line)
696+
name_match = WORD_REGEX.search(trailing_line)
697697
if name_match is not None:
698698
name = name_match.group(0).lower()
699699
return "smod", SMOD_info(name, parent_name)

0 commit comments

Comments
 (0)