mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 12:45:39 +01:00
Fix token while missing syntax= directive
This commit is contained in:
parent
83f13054ad
commit
fbe2b4c7a9
1 changed files with 4 additions and 0 deletions
|
|
@ -132,6 +132,10 @@ export const language = <languages.IMonarchLanguage>{
|
|||
[
|
||||
/(")(proto2)(")/,
|
||||
['string.quote', 'string', { token: 'string.quote', switchTo: '@topLevel.proto2' }]
|
||||
],
|
||||
[ // If no `syntax` provided, regarded as proto2
|
||||
/.*?/,
|
||||
{ token: '', switchTo: '@topLevel.proto2' }
|
||||
]
|
||||
],
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue