mirror of
https://github.com/RustyRaptor/brackets.git
synced 2026-12-04 00:15:22 -07:00
Merge branch 'master' into load-subdirs
This commit is contained in:
commit
47de2cb19c
27 files changed
+855
-245
No files matched your search
@@ -540,5 +540,21 @@ define(function (require, exports, module) {
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
* Deterimine if the cursor is located in the name of a function declaration.
|
||||
* This is so we can suppress hints when in a funtion name, as we do for variable and
|
||||
* parameter declarations, but we can tell those from the token itself rather than having
|
||||
* to look at previous tokens.
|
||||
*
|
||||
* @return {boolean} - true if the current cursor position is in the name of a function decl.
|
||||
*/
|
||||
Session.prototype.isFunctionName = function () {
|
||||
var cursor = this.getCursor(),
|
||||
token = this.getToken(cursor),
|
||||
prevToken = this._getPreviousToken(cursor);
|
||||
|
||||
return prevToken.string === "function";
|
||||
};
|
||||
|
||||
module.exports = Session;
|
||||
});
|
||||
Reference in new issue
Block a user