mirror of
https://github.com/RustyRaptor/brackets.git
synced 2026-12-04 00:15:22 -07:00
Add feature to hint on '(' key and fix typos
This commit is contained in:
1 parent
388ddcfa41
commit
dd6b19d984
5 files changed
+15
-14
No files matched your search
@@ -324,7 +324,7 @@ define(function (require, exports, module) {
|
||||
|
||||
/**
|
||||
*
|
||||
* @param {Object} cursor - a CodeMirror token
|
||||
* @param {Object} token - a CodeMirror token
|
||||
* @return {*} - the lexical state of the token
|
||||
*/
|
||||
function getLexicalState(token) {
|
||||
@@ -372,7 +372,7 @@ define(function (require, exports, module) {
|
||||
|
||||
if (type === "variable-2" || type === "variable" || type === "property") {
|
||||
nextToken = self.getNextToken(localCursor, true);
|
||||
if (nextToken.string === "(") {
|
||||
if (nextToken && nextToken.string === "(") {
|
||||
//nextToken = self.getNextToken(localCursor, true);
|
||||
localLexical = getLexicalState(nextToken);
|
||||
return localLexical;
|
||||
|
||||
Reference in new issue
Block a user