diff options
author | James <89495599+IAKOBVS@users.noreply.github.com> | 2023-10-17 07:24:20 +0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-17 07:24:20 +0700 |
commit | dd54d69115e39f48b77906b379e78259ba4af117 (patch) | |
tree | 16fcac2e670c93b4cce31a62c0d8dca6bcd3336c | |
parent | 162cafb60b9c14dfa6cf0eeea7dda0206c44501a (diff) | |
download | PerlNavigator-dd54d69115e39f48b77906b379e78259ba4af117.zip |
Update signatures.ts
-rw-r--r-- | server/src/signatures.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/src/signatures.ts b/server/src/signatures.ts index b2ba9f7..dcf48ff 100644 --- a/server/src/signatures.ts +++ b/server/src/signatures.ts @@ -40,7 +40,7 @@ function getFunction(position: Position, txtDoc: TextDocument): string[] { for (; l >= 0 && canShift(text[l]); --l) // Allow for ->, but not => or > (e.g. $foo->bar, but not $foo=>bar or $foo>bar). if (text[l] == ">") if (l - 1 >= 0 && text[l - 1] != "-") break; - if (l < 0 && text[l] != "$" && text[l] != "@" && text[l] != "%") ++l; + if (l < 0 || text[l] != "$" && text[l] != "@" && text[l] != "%") ++l; const symbol = text.substring(l, r); const currSig = text.substring(r, index); return [symbol, currSig]; |