Skip to content

PowerShell: Missing keywords #5004

@Paebbels

Description

@Paebbels

Description of the Issue

The PowerShell lexer doesn't recognize some (new?) keywords.

  • try
  • catch
  • throw
  • finally

Steps to Reproduce the Issue

Example 1

try
{	Write-Host "try"
}
catch [ExceptionTyp]
{	Write-Host "catch"
}
catch
{	Write-Host "catch"
}
finally
{	Write-Host "finally"
}

Example 2

if ($test)
{	throw "Error message"
}

Expected Behavior

Show the listed keywords with highlighting

Actual Behavior

The mentioned keywords are not highlighted.

Debug Information

Notepad++ v7.5.9 (32-bit)
Build time : Oct 14 2018 - 15:02:52
Path : C:\Program Files (x86)\Notepad++\notepad++.exe
Admin mode : OFF
Local Conf mode : OFF
OS : Windows 10 (64-bit)
Plugins : DSpellCheck.dll mimeTools.dll NppConverter.dll NppExport.dll ComparePlugin.dll MarkdownViewerPlusPlus.dll NPPJSONViewer-win32.dll nppplugin_solutionhub.dll nppplugin_solutionhub_ui.dll PluginManager.dll XMLTools.dll

Metadata

Metadata

Assignees

No one assigned

    Labels

    language-supportIssues or PRs related to programming languages (also e.g. in styles, themes)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions