Skip to content

Syntax highlighting incorrect for multi-dimensional arrays in parameter list. #657

@seraku24

Description

@seraku24

Environment data

dotnet --info output:

.NET Command Line Tools (1.0.0-preview2-003121)

Product Information:
 Version:            1.0.0-preview2-003121
 Commit SHA-1 hash:  1e9d529bc5

Runtime Environment:
 OS Name:     Windows
 OS Version:  10.0.10586
 OS Platform: Windows
 RID:         win10-x64

VS Code version: 1.4.0
C# Extension version: 1.3.0

Steps to reproduce

  1. Use a multi-dimensional array (e.g. int[,]) as the type for an argument to a function.

Expected behavior

The type and parameter name should be properly colored like other parameters.

Actual behavior

vscode-syntaxhighlightingissue

Note that both the type and parameter name for redFish are in the default coloring. I originally suspected the presence of a comma in a type might be the culprit, however the templated argument ham is rendered as expected.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions