File tree 2 files changed +6
-3
lines changed
2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -272,7 +272,7 @@ class ScopeMetadataProvider {
272
272
return language ;
273
273
}
274
274
275
- private static STANDARD_TOKEN_TYPE_REGEXP = / \b ( c o m m e n t | s t r i n g | r e g e x ) \b / ;
275
+ private static STANDARD_TOKEN_TYPE_REGEXP = / \b ( c o m m e n t | s t r i n g | r e g e x | m e t a \. e m b e d d e d ) \b / ;
276
276
private static _toStandardTokenType ( tokenType : string ) : StandardTokenType {
277
277
let m = tokenType . match ( ScopeMetadataProvider . STANDARD_TOKEN_TYPE_REGEXP ) ;
278
278
if ( ! m ) {
@@ -285,6 +285,8 @@ class ScopeMetadataProvider {
285
285
return StandardTokenType . String ;
286
286
case 'regex' :
287
287
return StandardTokenType . RegEx ;
288
+ case 'meta.embedded' :
289
+ return StandardTokenType . MetaEmbedded ;
288
290
}
289
291
throw new Error ( 'Unexpected match for standard token type!' ) ;
290
292
}
@@ -927,7 +929,7 @@ export class StackElementMetadata {
927
929
_languageId = languageId ;
928
930
}
929
931
if ( tokenType !== StandardTokenType . Other ) {
930
- _tokenType = tokenType ;
932
+ _tokenType = tokenType === StandardTokenType . MetaEmbedded ? StandardTokenType . Other : tokenType ;
931
933
}
932
934
if ( fontStyle !== FontStyle . NotSet ) {
933
935
_fontStyle = fontStyle ;
Original file line number Diff line number Diff line change @@ -54,7 +54,8 @@ export const enum StandardTokenType {
54
54
Other = 0 ,
55
55
Comment = 1 ,
56
56
String = 2 ,
57
- RegEx = 4
57
+ RegEx = 4 ,
58
+ MetaEmbedded = 8
58
59
}
59
60
60
61
/**
You can’t perform that action at this time.
0 commit comments