I have configured a custom language in the monaco editor, with two root tokens:
[/^\[?[e|E][r|R][r|R][o|O][r|R]\]?\s.*/, 'error'],
[/\d{1,4}(-|\/|\.|:)\d{1,2}\1\d{1,4}/, 'time'],
Using this setup, the following line of text will be displayed as a single error line:
eRrOr This is an error line no 13:22:01 (special decorator)
I would like 13:22:01
to display as a time token and the remaining text as an error token. Is there a technique I can implement to achieve this?