tree-sitter-haxe icon indicating copy to clipboard operation
tree-sitter-haxe copied to clipboard

Fix function types used as type parameters

Open tobil4sk opened this issue 1 year ago • 0 comments

This was broken previously:

var x:T<S -> R>;

As a side effect of the change, builtin types used as type parameters also highlight properly now:

var i:Null<Int>;

Previously the Int here was highlighted as @type, not @type.builtin.

I've also changed it so that when highlighting a type e.g. Null<S -> R>, it only highlights the type name (i.e. Null). Previously it would highlight the entire type Null<S -> R>, which meant that -> was also highlighted with @type.builtin.

tobil4sk avatar Aug 18 '24 23:08 tobil4sk