mirror of
https://github.com/RustyRaptor/brackets.git
synced 2026-12-04 00:15:22 -07:00
remove unused hinting for globals
This commit is contained in:
1 parent
d96d73d895
commit
e0c551d624
3 files changed
-25
No files matched your search
@@ -111,21 +111,6 @@ define(function (require, exports, module) {
|
||||
return name + "." + EVENT_TAG;
|
||||
}
|
||||
|
||||
/*
|
||||
* Annotate a list of tokens as being global variables
|
||||
*
|
||||
* @param {Array.<Object>} globals - list of identifier tokens
|
||||
* @return {Array.<Object>} - the input array; to each object in the array a
|
||||
* new global {boolean} property has been added to indicate that it is
|
||||
* a global variable.
|
||||
*/
|
||||
function annotateGlobals(globals) {
|
||||
return globals.map(function (t) {
|
||||
t.global = true;
|
||||
return t;
|
||||
});
|
||||
}
|
||||
|
||||
/*
|
||||
* Annotate a list of tokens as literals of a particular kind;
|
||||
* if string literals, annotate with an appropriate delimiter.
|
||||
@@ -196,7 +181,6 @@ define(function (require, exports, module) {
|
||||
exports.splitPath = splitPath;
|
||||
exports.eventName = eventName;
|
||||
exports.annotateLiterals = annotateLiterals;
|
||||
exports.annotateGlobals = annotateGlobals;
|
||||
exports.KEYWORDS = KEYWORDS;
|
||||
exports.LITERALS = LITERALS;
|
||||
exports.LANGUAGE_ID = LANGUAGE_ID;
|
||||
|
||||
@@ -103,11 +103,6 @@ define(function (require, exports, module) {
|
||||
$hintObj.addClass("guess-hint");
|
||||
}
|
||||
|
||||
// is the token a global variable?
|
||||
if (token.global) {
|
||||
$hintObj.addClass("global-hint");
|
||||
}
|
||||
|
||||
// is the token a keyword?
|
||||
if (token.keyword) {
|
||||
$hintObj.addClass("keyword-hint");
|
||||
|
||||
@@ -43,10 +43,6 @@
|
||||
.brackets-js-hints.property-hint {
|
||||
}
|
||||
|
||||
.brackets-js-hints.global-hint {
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
.brackets-js-hints.literal-hint {
|
||||
color: rgb(50, 50, 50); /* dark grey */
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user