Update grammars (#151383)

Updates the markdown and JS/TS grammars
This commit is contained in:
Matt Bierner
2022-06-07 09:37:14 -07:00
committed by GitHub
parent 7c22caad55
commit 9f3cafba7d
7 changed files with 181 additions and 34 deletions

View File

@@ -4,7 +4,7 @@
"If you want to provide a fix or improvement, please create a pull request against the original repository.",
"Once accepted there, we are happy to receive an update request."
],
"version": "https://github.com/microsoft/vscode-markdown-tm-grammar/commit/09c3e715102d08bba4c4ea828634474fc58b6f57",
"version": "https://github.com/microsoft/vscode-markdown-tm-grammar/commit/69d3321b4923ca2d5e8e900018887cc38b5fe04a",
"name": "Markdown",
"scopeName": "text.html.markdown",
"patterns": [
@@ -2774,47 +2774,50 @@
"5": {
"name": "punctuation.definition.metadata.markdown"
},
"6": {
"7": {
"name": "punctuation.definition.link.markdown"
},
"7": {
"8": {
"name": "markup.underline.link.markdown"
},
"9": {
"name": "punctuation.definition.link.markdown"
},
"10": {
"name": "string.other.link.description.title.markdown"
},
"11": {
"name": "punctuation.definition.string.begin.markdown"
"name": "markup.underline.link.markdown"
},
"12": {
"name": "punctuation.definition.string.end.markdown"
"name": "string.other.link.description.title.markdown"
},
"13": {
"name": "string.other.link.description.title.markdown"
"name": "punctuation.definition.string.begin.markdown"
},
"14": {
"name": "punctuation.definition.string.begin.markdown"
"name": "punctuation.definition.string.end.markdown"
},
"15": {
"name": "punctuation.definition.string.end.markdown"
},
"16": {
"name": "string.other.link.description.title.markdown"
},
"17": {
"16": {
"name": "punctuation.definition.string.begin.markdown"
},
"18": {
"17": {
"name": "punctuation.definition.string.end.markdown"
},
"18": {
"name": "string.other.link.description.title.markdown"
},
"19": {
"name": "punctuation.definition.string.begin.markdown"
},
"20": {
"name": "punctuation.definition.string.end.markdown"
},
"21": {
"name": "punctuation.definition.metadata.markdown"
}
},
"match": "(?x)\n (\\[)((?<square>[^\\[\\]\\\\]|\\\\.|\\[\\g<square>*+\\])*+)(\\])\n # Match the link text.\n (\\() # Opening paren for url\n (<?)((?<url>(?>[^\\s()]+)|\\(\\g<url>*\\))*)(>?) # The url\n [ \\t]* # Optional whitespace\n (?:\n ((\\().+?(\\))) # Match title in parens…\n | ((\").+?(\")) # or in double quotes…\n | ((').+?(')) # or in single quotes.\n )? # Title is optional\n \\s* # Optional whitespace\n (\\))\n",
"match": "(?x)\n (\\[)((?<square>[^\\[\\]\\\\]|\\\\.|\\[\\g<square>*+\\])*+)(\\])\n # Match the link text.\n (\\() # Opening paren for url\n # The url\n [ \\t]*\n (\n (<)([^<>\\n]*)(>)\n | ((?<url>(?>[^\\s()]+)|\\(\\g<url>*\\))*)\n )\n [ \\t]*\n # The title \n (?:\n ((\\()[^()]*(\\))) # Match title in parens…\n | ((\")[^\"]*(\")) # or in double quotes…\n | ((')[^']*(')) # or in single quotes.\n )? # Title is optional\n \\s* # Optional whitespace\n (\\))\n",
"name": "meta.link.inline.markdown"
},
"link-ref": {