diff --git a/src/typescript/typescript.ts b/src/typescript/typescript.ts index d22920e4..09441e69 100644 --- a/src/typescript/typescript.ts +++ b/src/typescript/typescript.ts @@ -130,7 +130,7 @@ export const language = { { include: '@whitespace' }, // regular expression: ensure it is terminated before beginning (otherwise it is an opeator) - [/\/(?=([^\\\/]|\\.)+\/([gimuy]*)(\s*)(\.|;|\/|,|\)|\]|\}|$))/, { token: 'regexp', bracket: '@open', next: '@regexp' }], + [/\/(?=([^\\\/]|\\.)+\/([gimsuy]*)(\s*)(\.|;|\/|,|\)|\]|\}|$))/, { token: 'regexp', bracket: '@open', next: '@regexp' }], // delimiters and operators [/[()\[\]]/, '@brackets'],