Pick up new md grammar (#156844)

Also updates themes to better handle https://github.com/microsoft/vscode-markdown-tm-grammar/issues/4
This commit is contained in:
Matt Bierner
2022-08-01 17:13:55 -07:00
committed by GitHub
parent a7cd732b7f
commit cf43717e18
13 changed files with 73 additions and 18 deletions

View File

@@ -33,7 +33,7 @@
"git": {
"name": "microsoft/vscode-markdown-tm-grammar",
"repositoryUrl": "https://github.com/microsoft/vscode-markdown-tm-grammar",
"commitHash": "69d3321b4923ca2d5e8e900018887cc38b5fe04a"
"commitHash": "97f2f8d38f10d3febd77d85b745945dc60fe334e"
}
},
"license": "MIT",

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/69d3321b4923ca2d5e8e900018887cc38b5fe04a",
"version": "https://github.com/microsoft/vscode-markdown-tm-grammar/commit/97f2f8d38f10d3febd77d85b745945dc60fe334e",
"name": "Markdown",
"scopeName": "text.html.markdown",
"patterns": [
@@ -2766,7 +2766,24 @@
"name": "punctuation.definition.link.title.begin.markdown"
},
"2": {
"name": "string.other.link.title.markdown"
"name": "string.other.link.title.markdown",
"patterns": [
{
"include": "#raw"
},
{
"include": "#bold"
},
{
"include": "#italic"
},
{
"include": "#strikethrough"
},
{
"include": "#image-inline"
}
]
},
"4": {
"name": "punctuation.definition.link.title.end.markdown"
@@ -2826,7 +2843,24 @@
"name": "punctuation.definition.link.title.begin.markdown"
},
"2": {
"name": "string.other.link.title.markdown"
"name": "string.other.link.title.markdown",
"patterns": [
{
"include": "#raw"
},
{
"include": "#bold"
},
{
"include": "#italic"
},
{
"include": "#strikethrough"
},
{
"include": "#image-inline"
}
]
},
"4": {
"name": "punctuation.definition.link.title.end.markdown"
@@ -2957,7 +2991,7 @@
"name": "punctuation.definition.strikethrough.markdown"
}
},
"match": "(~{2,})((?:[^~]|(?!(?<!~)\\1(?!~))~)*+)(\\1)",
"match": "(?<!\\\\)(~{2,})((?:[^~]|(?!(?<![~\\\\])\\1(?!~))~)*+)(\\1)",
"name": "markup.strikethrough.markdown"
}
}

View File

@@ -7,7 +7,11 @@
}
},
{
"scope": ["meta.embedded", "source.groovy.embedded"],
"scope": [
"meta.embedded",
"source.groovy.embedded",
"string meta.image.inline.markdown"
],
"settings": {
"foreground": "#6688cc"
}

View File

@@ -26,7 +26,8 @@
{
"scope": [
"meta.embedded",
"source.groovy.embedded"
"source.groovy.embedded",
"string meta.image.inline.markdown",
],
"settings": {
"foreground": "#D4D4D4"

View File

@@ -17,7 +17,8 @@
{
"scope": [
"meta.embedded",
"source.groovy.embedded"
"source.groovy.embedded",
"string meta.image.inline.markdown"
],
"settings": {
"foreground": "#FFFFFF"

View File

@@ -32,7 +32,8 @@
{
"scope": [
"meta.embedded",
"source.groovy.embedded"
"source.groovy.embedded",
"string meta.image.inline.markdown"
],
"settings": {
"foreground": "#000000ff"

View File

@@ -60,7 +60,11 @@
}
},
{
"scope": ["meta.embedded", "source.groovy.embedded"],
"scope": [
"meta.embedded",
"source.groovy.embedded",
"string meta.image.inline.markdown"
],
"settings": {
"foreground": "#d3af86"
}

View File

@@ -110,7 +110,8 @@
{
"scope": [
"meta.embedded",
"source.groovy.embedded"
"source.groovy.embedded",
"string meta.image.inline.markdown"
],
"settings": {
"foreground": "#F8F8F2"

View File

@@ -9,7 +9,8 @@
{
"scope": [
"meta.embedded",
"source.groovy.embedded"
"source.groovy.embedded",
"string meta.image.inline.markdown"
],
"settings": {
"foreground": "#333333"

View File

@@ -69,7 +69,8 @@
{
"scope": [
"meta.embedded",
"source.groovy.embedded"
"source.groovy.embedded",
"string meta.image.inline.markdown"
],
"settings": {
"foreground": "#F8F8F8"

View File

@@ -9,7 +9,8 @@
{
"scope": [
"meta.embedded",
"source.groovy.embedded"
"source.groovy.embedded",
"string meta.image.inline.markdown"
],
"settings": {
"foreground": "#839496"

View File

@@ -9,7 +9,8 @@
{
"scope": [
"meta.embedded",
"source.groovy.embedded"
"source.groovy.embedded",
"string meta.image.inline.markdown"
],
"settings": {
"foreground": "#657B83"

View File

@@ -15,8 +15,8 @@
"editor.foreground": "#ffffff",
"editor.selectionBackground": "#003f8e",
"minimap.selectionHighlight": "#003f8e",
"editor.lineHighlightBackground": "#00346e",
"editorLineNumber.activeForeground": "#949494",
"editor.lineHighlightBackground": "#00346e",
"editorLineNumber.activeForeground": "#949494",
"editorCursor.foreground": "#ffffff",
"editorWhitespace.foreground": "#404f7d",
"editorWidget.background": "#001c40",
@@ -65,7 +65,12 @@
}
},
{
"scope": ["meta.embedded", "source.groovy.embedded", "meta.jsx.children"],
"scope": [
"meta.embedded",
"source.groovy.embedded",
"meta.jsx.children",
"string meta.image.inline.markdown"
],
"settings": {
//"background": "#002451",
"foreground": "#FFFFFF"