3 ms·
VS Code uses the Monaco editor [1], which in turn uses Monarch [2] to provide syntax definitions. the Monarch github page [3] has a FAQ which also explains why
by Cthulhu_ 10y ago
VS Code uses the Monaco editor [1], which in turn uses Monarch [2] to provide syntax definitions. the Monarch github page [3] has a FAQ which also explains why they don't support TextMate grammars, citing exactly that Oniguruma regexes != Javascript regexes.
VS Code offers pretty decent Monarch syntax definitions in the monaco-languages at [4]; you're probably better off just using those instead.
[1] https://microsoft.github.io/monaco-editor/index.html https://microsoft.github.io/monaco-editor/index.html
[2] https://microsoft.github.io/monaco-editor/monarch.html https://microsoft.github.io/monaco-editor/monarch.html
[3] https://github.com/Microsoft/monaco-editor https://github.com/Microsoft/monaco-editor
[4] https://github.com/Microsoft/monaco-languages/tree/master/src https://github.com/Microsoft/monaco-languages/tree/master/sr...