Home Download Buy Blog Forum Support

C# (C-Sharp) using block not correctly highlighted

C# (C-Sharp) using block not correctly highlighted

Postby richardcox13 on Sat Oct 06, 2012 3:15 pm

In a C# using block, eg.

Code: Select all
static void Main(string[] args) {
  using (var x = new FileStream("Foo.txt", FileMode.Open, FileAccess.Read)) {
    var b = x.ReadByte();
}


using the default (as installed) C# language file (...\Sublime Text 2\Packages\C#\C#.tmLanguage) the using keyword is not highlighted as such. It should be treated as the "lock" in a lock statement block.

ST-csharp-Keywords.png
Illustrated...
ST-csharp-Keywords.png (7.5 KiB) Viewed 436 times
--
Richard
richardcox13
 
Posts: 3
Joined: Sat Oct 06, 2012 2:49 pm
Location: UK

Return to Technical Support

Who is online

Users browsing this forum: Exabot [Bot] and 21 guests