Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Syntax highlighting breaks with complicated expression in string literal in C# #646

Closed
hughbe opened this issue Sep 29, 2016 · 2 comments
Closed

Comments

@hughbe
Copy link

hughbe commented Sep 29, 2016

If you look at the following code in the latest version of sublime text 3, you see that the syntax colorer highlights everything orange after the end of the string literal (see screenshot) incorrectly:
30ed94ff84d0114715bb9e528eeffb3716a35f7b

namespace Namespace 
{
    class C
    {
            public override string ToString() =>
            string.Format(CultureInfo.InvariantCulture, "catch({0}) [{1}->{2}]", ExceptionType.Name, HandlerStartIndex, HandlerEndIndex);
    }
}
@keith-hall
Copy link
Collaborator

it's not related to the string literal, it's because the current C# syntax definition doesn't support lambdas. This is being addressed in #93.

@wbond
Copy link
Member

wbond commented Dec 21, 2016

The rewrite from #93 just landed in master, and this issue has been resolved

@wbond wbond closed this as completed Dec 21, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants