fix bug where no hints would be provided after '('

This commit is contained in:
dloverin committed 2013-03-29 14:53:55 -04:00
1 parent 01f6b2c496
commit 9bf0b9f7d2
1 file changed
+2 -2
@@ -173,14 +173,14 @@ define(function (require, exports, module) {
query = "";
if (token) {
if (token.string !== ".") {
if (token.string !== "." && token.string !== "(" && token.string !== ',') {
query = token.string.substring(0, token.string.length - (token.end - cursor.ch));
query = query.trim();
}
}
return query;
};
/**
* Find the context of a property lookup. For example, for a lookup
* foo(bar, baz(quux)).prop, foo is the context.