fix bug in ace keywords highlight, more formatting in gang, update changelog

This commit is contained in:
Olivier Gagnon
2021-03-12 14:20:39 -05:00
parent f8d65b9240
commit 1df0af0fa4
3 changed files with 13 additions and 7 deletions

View File

@@ -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":