mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-03 06:51:53 +01:00
ts sem tokens in html
This commit is contained in:
@@ -58,6 +58,8 @@ export function getDocumentRegions(languageService: LanguageService, document: T
|
||||
} else if (lastAttributeName === 'type' && lastTagName.toLowerCase() === 'script') {
|
||||
if (/["'](module|(text|application)\/(java|ecma)script|text\/babel)["']/.test(scanner.getTokenText())) {
|
||||
languageIdFromType = 'javascript';
|
||||
} else if (/["']text\/typescript["']/.test(scanner.getTokenText())) {
|
||||
languageIdFromType = 'typescript';
|
||||
} else {
|
||||
languageIdFromType = undefined;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user