dotnet / dotnet/csharp-tmLanguage

Incorrect syntax coloring in interface definition

Open
#161 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
78
Forks
43
Avg merge
34m
Merged PRs (30d)
1

Description

From https://github.com/OmniSharp/omnisharp-vscode/issues/3201

```cs
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

using System.Runtime.InteropServices;

internal partial class Interop
{
internal partial class Mshtml
{
public interface IHTMLElement2
{
[return: MarshalAs(UnmanagedType.Interface)]
IHTMLElement
InsertAdjacentElement(string @where,
[In, MarshalAs(UnmanagedType.Interface)] IHTMLElement insertedElement);
[return: MarshalAs(UnmanagedType.Interface)]
IHTMLElement
applyElement([In, MarshalAs(UnmanagedType.Interface)] IHTMLElement apply,
string @where);
}
}
}
```

Notice that the coloring of the parameters is incorrect
![image](https://user-images.githubusercontent.com/1275900/62086892-b92ace80-b257-11e9-9030-055156501228.png)

Removing the newline corrects it:
![image](https://user-images.githubusercontent.com/1275900/62086909-c34ccd00-b257-11e9-8c4b-70a1725245ca.png)

See https://github.com/dotnet/winforms/pull/1533

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.