mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-24 20:26:08 +00:00
Script element with type="text/html" not recognised as html. Fixes #25920
This commit is contained in:
@@ -339,7 +339,7 @@
|
||||
},
|
||||
{
|
||||
"begin": "\\G",
|
||||
"end": "(?i:(?=/?>|type\\s*=\\s*('|\"|)(?!text/(javascript|ecmascript)|application/((x-)?javascript|ecmascript))\\b))",
|
||||
"end": "(?i:(?=/?>|type\\s*=\\s*('|\"|)(?!text/(javascript|ecmascript)|application/((x-)?javascript|ecmascript)|module)\\b))",
|
||||
"name": "meta.tag.metadata.script.html",
|
||||
"patterns": [
|
||||
{
|
||||
@@ -347,6 +347,44 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"begin": "(?=(?i:type\\s*=\\s*('|\"|)(?=text/(x-handlebars|(x-(handlebars-)?|ng-)?template|html))\\b))",
|
||||
"end": "(<)(?=/(?i:script))",
|
||||
"endCaptures": {
|
||||
"0": {
|
||||
"name": "meta.tag.metadata.script.html"
|
||||
},
|
||||
"1": {
|
||||
"name": "punctuation.definition.tag.begin.html"
|
||||
}
|
||||
},
|
||||
"patterns": [
|
||||
{
|
||||
"begin": "\\G",
|
||||
"end": "(>)|(?=/>)",
|
||||
"endCaptures": {
|
||||
"1": {
|
||||
"name": "punctuation.definition.tag.end.html"
|
||||
}
|
||||
},
|
||||
"name": "meta.tag.metadata.script.html",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#tag-stuff"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"begin": "(?!\\G)",
|
||||
"end": "(?=</(?i:script))",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "text.html.basic"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"begin": "(?=(?i:type))",
|
||||
"end": "(<)(?=/(?i:script))",
|
||||
|
||||
Reference in New Issue
Block a user