vshaxe / haxe-TmLanguage

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

Incorrect arrow function highlighting #29

Closed Gama11 closed 6 years ago

Gama11 commented 7 years ago

function new( init : (T -> Void) -> (Dynamic -> Void) -> Void ) : Void;
Gama11 commented 7 years ago

The issue here is that the ) in (T -> Void) closes the function parameter scope (which is why highlighting is correct until there).

Gama11 commented 6 years ago

The way I fixed it, it still breaks in case the nested function type is a type hint in an arrow function parameter itself... But that should be really rare.