mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 23:13:02 +01:00
Fix JSX collision with old type assertions.
This commit is contained in:
parent
1aa7a7cfd1
commit
15e3e5b806
1 changed files with 5 additions and 1 deletions
|
|
@ -295,7 +295,7 @@ export const language = {
|
|||
},
|
||||
{
|
||||
cases: {
|
||||
'$2==<': { token: '@rematch', next: '@typeparams' },
|
||||
'$2==<': { token: '@brackets', next: '@typeparams' },
|
||||
'@default': '@rematch'
|
||||
}
|
||||
}
|
||||
|
|
@ -350,6 +350,10 @@ export const language = {
|
|||
|
||||
jsxReady: [
|
||||
[/<>/, 'delimiter.html', '@jsxText.FRAGMENT'],
|
||||
[
|
||||
/(<)([A-Z][\w$]*\s*(?:,|extends|implements))/,
|
||||
['@brackets', { token: '@rematch', next: '@typeparams' }]
|
||||
],
|
||||
[/(<)(\s*)([\w$])/, ['delimiter.html', '', { token: '@rematch', next: '@jsxIdent.jsxOpen.' }]]
|
||||
],
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue