I have integrated monaco editor in angular14 and have created a custom highlighter, I want to highlight only standalone keywords as per the list I have created, but it is highlighting the keywords from my list when they have alphanumeric characters or _ as prefix. Please modify the regular expression below.
[/b(external|in_map|internal|out_map|encoder|decoder|xml_schema|asn_block|external_only|session)b/, ‘keyword’],enter image description here
Highlight only the standalone word from the keyword list