jsx / jsx-mode.el

Emacs major mode for JSX, an altJS
72 stars 13 forks source link

Multiple variables declaration is not highlighted #3

Open nyuichi opened 12 years ago

nyuichi commented 12 years ago
class _Main {
    static function main(args : string[]) : void {
        var a = 1, b = 2;
    }
}

won't highlight b :(

abicky commented 12 years ago

I know this issue, but it is very very difficult to resolve it in such a case like below.

var a = 1,
      b = {
          f: function() : int { return 1; }
      } : Map.<function() : int>;

The feature of fontifying declarations of multiple variables is not useful relative to its difficulty. I might support it in the future, but keep your expectations low...