clemos / haxe-sublime-bundle

Sublime Text bundle for Haxe programming language
Apache License 2.0
237 stars 85 forks source link

weird syntax highlighting #219

Closed nadako closed 9 years ago

nadako commented 9 years ago

nadako commented 9 years ago

one more, why default is different than null in this context:

nadako commented 9 years ago

one more: why set is highlighted here?

br4nnigan commented 9 years ago

i have another one, notice the type of the second bildschirmfoto 2015-04-13 um 17 10 11

nadako commented 9 years ago

another one:

nadako commented 9 years ago

and another one:

ghost commented 9 years ago

Thanks, I'll try to fix that. Is this feature documented somewhere? class A<T:{}> {}

nadako commented 9 years ago

Sure, it's type constraints: http://haxe.org/manual/type-system-type-parameter-constraints.html

ghost commented 9 years ago

{} in this case is typedef, right?

nadako commented 9 years ago

It's a structure, how is that related to typedef? T:{} simply means that it should be an object (because any object will unify with an empty structure).

ghost commented 9 years ago

Ok.

ghost commented 9 years ago

Fixed.

nadako commented 9 years ago

Shouldn't default be highlighted here?

ghost commented 9 years ago

Fixed.

ghost commented 9 years ago

Javascript? How can you use js code in haxe without untyped keyword? Am I missing something?

br4nnigan commented 9 years ago

Oops i mixed something up here.