Fix token while missing `syntax=` directive

pull/2809/head
cmlchen 3 years ago
parent 83f13054ad
commit fbe2b4c7a9

@ -132,6 +132,10 @@ export const language = <languages.IMonarchLanguage>{
[ [
/(")(proto2)(")/, /(")(proto2)(")/,
['string.quote', 'string', { token: 'string.quote', switchTo: '@topLevel.proto2' }] ['string.quote', 'string', { token: 'string.quote', switchTo: '@topLevel.proto2' }]
],
[ // If no `syntax` provided, regarded as proto2
/.*?/,
{ token: '', switchTo: '@topLevel.proto2' }
] ]
], ],

Loading…
Cancel
Save