Skip to content

Commit

Permalink
[Console Monaco] Resolve uncaught error from tokenizer
Browse files Browse the repository at this point in the history
  • Loading branch information
ElenaStoeva committed Jul 19, 2024
1 parent c5165d9 commit dd1cd07
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,12 @@ export const lexerRules: monaco.languages.IMonarchLanguage = {
root: [
...consoleSharedLexerRules.tokenizer.root,
// method
matchTokensWithEOL('method', /([a-zA-Z]+)/, 'root', 'method_sep'),
matchTokensWithEOL(
'method',
/([Gg][Ee][Tt])|([Pp][Oo][Ss][Tt])|([Pp][Uu][Tt])|([Pp][Aa][Tt][Cc][Hh])|([Dd][Ee][Ll][Ee][Tt][Ee])|([Hh][Ee][Aa][Dd])/,
'root',
'method_sep'
),
// whitespace
matchToken('whitespace', '\\s+'),
// text
Expand Down

0 comments on commit dd1cd07

Please sign in to comment.