clemos / haxe-sublime-bundle

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

Passing inline arrays to methods & constructors #146

Closed DanielHudson closed 9 years ago

DanielHudson commented 10 years ago
this.graphics.beginGradientFill( type : flash.display.GradientType , colors : Array<UInt> , alphas : Array<Dynamic> , ratios : Array<Dynamic> , ?matrix : flash.geom.Matrix , ?spreadMethod : flash.display.SpreadMethod , ?interpolationMethod : flash.display.InterpolationMethod , ?focalPointRatio : Float )

Take this...

beginGradientFill(GradientType.LINEAR, [0xff0000, ...

The comma in the inline array will trigger the code completion, if you then keep typing and close the array followed by another comma...

beginGradientFill(GradientType.LINEAR, [0xff0000, 0x00ff00], ...

The code completion will skip a parameter... (ie alphas).

mlopes commented 10 years ago

I can confirm, this is also happening to me. Here's some screenshots:

screen shot 2014-07-24 at 17 12 48 screen shot 2014-07-24 at 17 13 08

clemos commented 10 years ago

I'll see what I can do. Function arguments parsing is pretty basic currently...