vshaxe / haxe-TmLanguage

TextMate grammars for Haxe and HXML
MIT License
7 stars 9 forks source link

Highlighting stops in weird conditions #47

Closed Aurel300 closed 5 years ago

Aurel300 commented 5 years ago
class Foo {
  function func() {
    switch x {
      case _:
        new X(Y(function () foo));
      case A({a: _}, _):
        // highlighting is broken at this point
        new Map<String, String>();
        trace("foobar");
        var x = 1 + 2;
        var etc = "etc";
    }
  }
}

It seems the lines with new X and case A are both required for the issue to happen. Can be alleviated by putting foo inside {}.

Gama11 commented 5 years ago

Seems like a duplicate of https://github.com/vshaxe/haxe-TmLanguage/issues/3.