nickspoons / vim-cs

Official Vim Runtime Files for C#
9 stars 3 forks source link

C# code highlighted as xml when comment contains unclosed xml tag #9

Closed idbrii closed 5 years ago

idbrii commented 5 years ago

If I had an arrow in a comment, syntax thinks it's a giant xml comment:

        Dictionary<string, AxisConfiguration> table; ///<---------
        if (_instance._axesTable.TryGetValue(inputConfig.name, out table))
        {
            AxisConfiguration axisConfig;
            if (table.TryGetValue(axisName, out axisConfig))
                return axisConfig;
        }

All the code is highlighted as xmlAttrib or xmlTag. Removing the < fixes it.

While my code is kinda bad for having a random xml element, it seems very wrong that non comments can be highlighted as xml.