csharp-tmLanguage icon indicating copy to clipboard operation
csharp-tmLanguage copied to clipboard

Incorrect syntax coloring in interface definition

Open akshita31 opened this issue 6 years ago • 2 comments

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

// 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

Removing the newline corrects it: image

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

akshita31 avatar Aug 09 '19 18:08 akshita31

cc @hughbe

akshita31 avatar Aug 09 '19 18:08 akshita31

This is also #63

wise0704 avatar Aug 08 '23 09:08 wise0704