RED-7571: Syntax highlighting now matches keywords with hyphens

This commit is contained in:
Adina Țeudan 2023-09-25 17:21:46 +03:00
parent 6d3ba94b74
commit ac861d737c

View File

@ -140,7 +140,9 @@ export class RulesScreenComponent implements OnInit, ComponentCanDeactivate {
config.keywords.push(k);
}
});
console.log({ config });
// Update tokenizer to match keywords with hyphens (originally /[a-zA-Z_$][\w$]*/)
config.tokenizer.root[1][0] = /[a-zA-Z_$][\w$-]*/;
monaco.languages.registerCompletionItemProvider('java', {
provideCompletionItems: (model, position) => {