Skip to content

"Continue" is highlighted as a statement/keyword when used as a parameter value #224

Description

@Makumasa

Prerequisites

  • Write a descriptive title.
  • Make sure you are able to repro it on the latest version
  • Search the existing issues.

Steps to reproduce

  1. Create a new file in Visual Studio Code and select PowerShell as the language.
  2. Call a function/cmdlet where one of the parameter values is a keyword, e.g. "Continue".
Image

Expected behavior

Continue is highlighted in white, like other parameter values.

Actual behavior

Continue is highlighted in purple, likely meaning it is being recognized as the continue keyword.

Error details

No response

Environment data

Name                           Value
----                           -----
PSVersion                      7.6.1
PSEdition                      Core
GitCommitId                    7.6.1
OS                             Microsoft Windows 10.0.26200
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.4
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

Version

Version used in Visual Studio Code 1.117.0

Visuals

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions