jskinner / DefaultPackages

Old bug tracker for Sublime Text's "Default Packages", e.g. bad syntax highlighting
http://web.archive.org/web/20150524043750/https://www.sublimetext.com/forum/viewtopic.php?f=2&t=12095
26 stars 2 forks source link

c# syntax highlighting broken by method calls on class level containing a string parameter with multiple words #108

Closed g-bon closed 8 years ago

g-bon commented 9 years ago

C# syntax highlighting breaks when a source file contains a method call where a parameter is a string (not a variable containing a string) composed by multiple words. E.g.: foo("some thing")

OS: Windows 8.1 - 64 bit Sublime Text 3 build 3065

Example to reproduce the issue:

public class foo
{
    // All good
    writeSomething("something");

    // This breaks highlighting
    writeSomething("some thing");

    // Broken from here
}

c -hl-broken

nrichards commented 9 years ago

Should be titled, "method calls at class scope". fart cs

NOTE is also broken here on GitHub:

public class Coo
{
    public Object text = ObjectMaker.MakeSomeText ("In order to publish your text, you need to do some texty things 'Like this' and then say hello.");
    public Vector curves;
    int Zoo()
    {
        // All the code after the first double-quote, before <In order to> is incorrectly colored with the QUOTE color, for csharp.
        // Sublime Text v3, Build 3083
    }
}

Looks like they're the same library.

wbond commented 8 years ago

This issue has been fixed with the latest syntax at https://github.com/sublimehq/Packages. It should be distributed as part of dev build 3112.