Function name not recognized in definition when on different line

Open
#214 0 comments 1 reaction 1 assignee View on GitHub

@andyleejordan is already working on this.

Since Mar 18, 2024.

Assessment

This issue has not been assessed yet.

Description

Prerequisites
  • Write a descriptive title.
  • Make sure you are able to repro it on the latest version
  • Search the existing issues.
Steps to reproduce
function          FunctionWithExtraSpace
{

} FunctionWithExtraSpace

function 
FunctionNameOnDifferentLine {

}
Expected behavior
`FunctionNameOnDifferentLine` is identified
Actual behavior
Notice that `FunctionNameOnDifferentLine` is not recognized. See image.
Error details

No response

Environment data
Name                           Value
----                           -----
PSVersion                      7.2.6
PSEdition                      Core
GitCommitId                    7.2.6
OS                             Microsoft Windows 10.0.22000
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0
Version

1.71.0-insider

Visuals

image

Actual:
image

Expected:
image

Dominant language
PowerShell
Stars
151
Forks
55
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from PowerShell/EditorSyntax

All issues in PowerShell/EditorSyntax

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.