mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-18 23:38:35 +02:00
fix bug in ace keywords highlight, more formatting in gang, update changelog
This commit is contained in:
@@ -60,11 +60,12 @@ var identifierRe = "[a-zA-Z\\$_\u00a1-\uffff][a-zA-Z\\d\\$_\u00a1-\uffff]*";
|
||||
|
||||
let functions = (function(){
|
||||
function recursiveKeywords(namespace) {
|
||||
const keywords = [];
|
||||
let keywords = [];
|
||||
for(const elem of Object.keys(namespace)) {
|
||||
keywords.push(elem);
|
||||
if(typeof namespace[elem] === Object) {
|
||||
keywords.concat(namespace[elem]);
|
||||
if(typeof namespace[elem] == 'object') {
|
||||
console.log(recursiveKeywords(namespace[elem]));
|
||||
keywords = keywords.concat(recursiveKeywords(namespace[elem]));
|
||||
}
|
||||
}
|
||||
return keywords;
|
||||
@@ -75,6 +76,8 @@ let functions = (function(){
|
||||
return recursiveKeywords(ns).sort().reverse().join("|");
|
||||
})();
|
||||
|
||||
console.log(functions);
|
||||
|
||||
var NetscriptHighlightRules = function(options) {
|
||||
var keywordMapper = this.createKeywordMapper({
|
||||
"variable.language":
|
||||
|
||||
Reference in New Issue
Block a user