Skip to content

Commit

Permalink
Allow for LS features to work for 0 columns
Browse files Browse the repository at this point in the history
  • Loading branch information
gnikit committed Dec 20, 2021
1 parent 881addd commit 6de6684
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# CHANGELONG

## 1.14.1

### Fixes

* Fixes language server features not triggering for variables in column 0

## 1.14.0

### Fixes
Expand Down
2 changes: 1 addition & 1 deletion fortls/objects.py
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ def get_var_stack(line):
"CALL self%method(this%foo" -> ["this", "foo"]
"""
if len(line) == 0:
return None
return [""]
final_var, sections = get_paren_level(line)
if final_var == "":
return [""]
Expand Down

0 comments on commit 6de6684

Please sign in to comment.