Merge branch 'RED-7571' into 'master'
RED-7571: Syntax highlighting now matches keywords with hyphens Closes RED-7571 See merge request redactmanager/red-ui!109
This commit is contained in:
commit
08dd2b3dde
@ -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) => {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user