Skip to content

Commit

Permalink
Should autocomplete variable in this case #207
Browse files Browse the repository at this point in the history
  • Loading branch information
xonixx committed Dec 17, 2023
1 parent 0de7ca3 commit f9a13cd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main/java/intellij_awk/psi/AwkUserVarNameMixin.java
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,9 @@ public boolean isInsideInitializingContext() {
}

public boolean isALocalVariableInAFunction() {
if (getParent() instanceof AwkParamList) { // function (here) {}
return true;
}
AwkAction action = PsiTreeUtil.getTopmostParentOfType(this, AwkAction.class);
if (action == null) {
return false;
Expand Down

0 comments on commit f9a13cd

Please sign in to comment.