|
@@ -157,7 +157,7 @@ function fillCache () {
|
|
for (let key = 0; key < mainList.length; ++key) {
|
|
for (let key = 0; key < mainList.length; ++key) {
|
|
const word = mainList[key];
|
|
const word = mainList[key];
|
|
const keyword = names[word];
|
|
const keyword = names[word];
|
|
- cacheMainList.push(keyword.substring(1, keyword.length - 1));
|
|
|
|
|
|
+ cacheMainList.push(keyword);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if (cacheOp == null) {
|
|
if (cacheOp == null) {
|
|
@@ -248,7 +248,7 @@ export function getCodeEditorModeConfig () {
|
|
//console.debug(names);
|
|
//console.debug(names);
|
|
blockList.forEach((v) => {
|
|
blockList.forEach((v) => {
|
|
const keyword = names[v];
|
|
const keyword = names[v];
|
|
- const value = keyword.substring(1, keyword.length - 1);
|
|
|
|
|
|
+ const value = keyword;
|
|
cacheMainList.push(value);
|
|
cacheMainList.push(value);
|
|
keywords.push(value);
|
|
keywords.push(value);
|
|
blocks.push(value);
|
|
blocks.push(value);
|
|
@@ -260,19 +260,19 @@ export function getCodeEditorModeConfig () {
|
|
});
|
|
});
|
|
keywordsList.forEach((v) => {
|
|
keywordsList.forEach((v) => {
|
|
const keyword = names[v];
|
|
const keyword = names[v];
|
|
- const value = keyword.substring(1, keyword.length - 1);
|
|
|
|
|
|
+ const value = keyword;
|
|
cacheMainList.push(value);
|
|
cacheMainList.push(value);
|
|
keywords.push(value);
|
|
keywords.push(value);
|
|
});
|
|
});
|
|
typeList.forEach((v) => {
|
|
typeList.forEach((v) => {
|
|
const keyword = names[v];
|
|
const keyword = names[v];
|
|
- const value = keyword.substring(1, keyword.length - 1);
|
|
|
|
|
|
+ const value = keyword;
|
|
cacheMainList.push(value);
|
|
cacheMainList.push(value);
|
|
types.push(value);
|
|
types.push(value);
|
|
});
|
|
});
|
|
atomList.forEach((v) => {
|
|
atomList.forEach((v) => {
|
|
const keyword = names[v];
|
|
const keyword = names[v];
|
|
- const value = keyword.substring(1, keyword.length - 1);
|
|
|
|
|
|
+ const value = keyword;
|
|
cacheMainList.push(value);
|
|
cacheMainList.push(value);
|
|
atoms.push(value);
|
|
atoms.push(value);
|
|
});
|
|
});
|
|
@@ -282,11 +282,11 @@ export function getCodeEditorModeConfig () {
|
|
|
|
|
|
logicOpList.forEach((v) => {
|
|
logicOpList.forEach((v) => {
|
|
const keyword = names[v];
|
|
const keyword = names[v];
|
|
- const value = keyword.substring(1, keyword.length - 1);
|
|
|
|
|
|
+ const value = keyword;
|
|
cacheOp.push(value);
|
|
cacheOp.push(value);
|
|
keywords.push(value);
|
|
keywords.push(value);
|
|
});
|
|
});
|
|
-
|
|
|
|
|
|
+ cacheMainList.push(lexer.getLangFuncs().main_function);
|
|
return {
|
|
return {
|
|
case_default: case_default,
|
|
case_default: case_default,
|
|
atoms: atoms,
|
|
atoms: atoms,
|