OrangeT / vim-csharp

Enhancement's to Vim's C-Sharp Functionality
117 stars 39 forks source link

Highlighting issue when creating new objects as part of a method call #28

Closed quanticle closed 7 years ago

quanticle commented 9 years ago

With the following example code

namespace Test 
{

    internal static class Foo
    {
        public static Collection<SomeObjectType> AMethod(int param1, string param2)
        {
            string intermediateVal = DoSomething(param1, param2);
            return Foo.blah(param1,
                new Object1(),
                new Object2());
        }
    }
}

I notice that the new in front of Object1() isn't getting highlighted, but the new in front of Object2() is. I've attached a screenshot below that demonstrates the issue. The difference in formatting remains regardless of the colorscheme selected, which makes me think that it's an issue with the cs.vim syntax definition file. That said, I'm completely new to how vim syntax definitions work, so I'm not exactly sure where to go from here in debugging this. vim-cs-highlighting-error

kianryan commented 7 years ago

Issue now resolved