Prevent <Markdown> blocks from locking up vscode extension (#269)
This commit is contained in:
parent
f366520995
commit
444e5a6807
2 changed files with 15 additions and 56 deletions
|
@ -2200,42 +2200,6 @@
|
|||
"end": "(-->)",
|
||||
"name": "comment.block.html"
|
||||
},
|
||||
{
|
||||
"begin": "(?i)(^|\\G)\\s*(?=<(script|style|pre)(\\s|$|>)(?!.*?</(script|style|pre)>))",
|
||||
"end": "(?i)(.*)((</)(script|style|pre)(>))",
|
||||
"endCaptures": {
|
||||
"1": {
|
||||
"patterns": [
|
||||
{
|
||||
"include": "text.html.markdown.astro"
|
||||
}
|
||||
]
|
||||
},
|
||||
"2": {
|
||||
"name": "meta.tag.structure.$4.end.html"
|
||||
},
|
||||
"3": {
|
||||
"name": "punctuation.definition.tag.begin.html"
|
||||
},
|
||||
"4": {
|
||||
"name": "entity.name.tag.html"
|
||||
},
|
||||
"5": {
|
||||
"name": "punctuation.definition.tag.end.html"
|
||||
}
|
||||
},
|
||||
"patterns": [
|
||||
{
|
||||
"begin": "(\\s*|$)",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "text.html.markdown.astro"
|
||||
}
|
||||
],
|
||||
"while": "(?i)^(?!.*</(script|style|pre|Markdown)>)"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"begin": "(?i)(?=</?[a-zA-Z]+[^\\s/>]*(\\s|$|/?>))",
|
||||
"while": "(?i)^(?!.*</(\\1||\\2)>)",
|
||||
|
|
|
@ -714,39 +714,34 @@
|
|||
]
|
||||
},
|
||||
"astro-markdown": {
|
||||
"begin": "(?:^\\s+)?(<)(Markdown)\\b(?=[^>]*)",
|
||||
"name": "text.html.astro.markdown",
|
||||
"begin": "(<)(Markdown)(>)",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "punctuation.definition.tag.begin.html"
|
||||
"name":"punctuation.definition.tag.begin.html"
|
||||
},
|
||||
"2": {
|
||||
"name": "entity.name.tag.markdown.astro"
|
||||
"name": "entity.name.tag.html"
|
||||
},
|
||||
"3": {
|
||||
"name":"punctuation.definition.tag.end.html"
|
||||
}
|
||||
},
|
||||
"end": "(</)(Markdown)(>)",
|
||||
"endCaptures": {
|
||||
"1": {
|
||||
"name":"punctuation.definition.tag.begin.html"
|
||||
},
|
||||
"2": {
|
||||
"name": "punctuation.definition.tag.html"
|
||||
"name": "entity.name.tag.html"
|
||||
},
|
||||
"3": {
|
||||
"name":"punctuation.definition.tag.end.html"
|
||||
}
|
||||
},
|
||||
"name": "text.html.markdown.astro",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#tag-stuff"
|
||||
},
|
||||
{
|
||||
"begin": "(>)",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "punctuation.definition.tag.end.html"
|
||||
}
|
||||
},
|
||||
"end": "(?=</Markdown)",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "text.html.markdown.astro"
|
||||
}
|
||||
]
|
||||
"include": "text.html.markdown.astro"
|
||||
}
|
||||
]
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue