clemos/haxe-sublime2-bundle — Issue #11: Completion bug after coma character
Author: clemos
Created: 2011-12-01 20:27:14+00:00
State: open

I'm re-posting this message from Philippe here to remember it's not completely fixed:
---------
this context detection is much too rudimentary, and really to make it correctly is going to be very tricky. I'd suggest to look how it's done in FlashDevelop code - although far from being perfect it's what you can achieve efficiently without AST.

First disambiguate the coma itself:
http://code.google.com/p/flashdevelop/source/browse/trunk/FD4/External/Plugins/ASCompletion/Completion/ASComplete.cs#3058

Second, find the actual function call (they can be imbricated):
http://code.google.com/p/flashdevelop/source/browse/trunk/FD4/External/Plugins/ASCompletion/Completion/ASComplete.cs#1510
----------