提交 f0e2534a 编写于 作者: M Matt Bierner

Update markdown grammar

上级 c1126302
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
"If you want to provide a fix or improvement, please create a pull request against the original repository.", "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." "Once accepted there, we are happy to receive an update request."
], ],
"version": "https://github.com/microsoft/vscode-markdown-tm-grammar/commit/935f7a6d1da73e16231be18c545d7991d3698075", "version": "https://github.com/microsoft/vscode-markdown-tm-grammar/commit/3445afdd642f67052a21c0f86bf76b3deb45fd26",
"name": "Markdown", "name": "Markdown",
"scopeName": "text.html.markdown", "scopeName": "text.html.markdown",
"patterns": [ "patterns": [
...@@ -1986,7 +1986,7 @@ ...@@ -1986,7 +1986,7 @@
"include": "#list_paragraph" "include": "#list_paragraph"
} }
], ],
"while": "((^|\\G)([ ]{4}|\\t))|(^[ \\t]*$)" "while": "((^|\\G)([ ]{2,4}|\\t))|(^[ \\t]*$)"
}, },
{ {
"begin": "(^|\\G)([ ]{0,3})([0-9]+\\.)([ ]{1,3}|\\t)", "begin": "(^|\\G)([ ]{0,3})([0-9]+\\.)([ ]{1,3}|\\t)",
...@@ -2004,7 +2004,7 @@ ...@@ -2004,7 +2004,7 @@
"include": "#list_paragraph" "include": "#list_paragraph"
} }
], ],
"while": "((^|\\G)([ ]{4}|\\t))|(^[ \\t]*$)" "while": "((^|\\G)([ ]{2,4}|\\t))|(^[ \\t]*$)"
} }
] ]
}, },
...@@ -2343,32 +2343,32 @@ ...@@ -2343,32 +2343,32 @@
"7": { "7": {
"name": "markup.underline.link.markdown" "name": "markup.underline.link.markdown"
}, },
"8": { "9": {
"name": "punctuation.definition.link.markdown" "name": "punctuation.definition.link.markdown"
}, },
"9": { "10": {
"name": "string.other.link.description.title.markdown" "name": "string.other.link.description.title.markdown"
}, },
"10": { "11": {
"name": "punctuation.definition.string.begin.markdown" "name": "punctuation.definition.string.begin.markdown"
}, },
"11": { "12": {
"name": "punctuation.definition.string.end.markdown" "name": "punctuation.definition.string.end.markdown"
}, },
"12": { "13": {
"name": "string.other.link.description.title.markdown" "name": "string.other.link.description.title.markdown"
}, },
"13": { "14": {
"name": "punctuation.definition.string.begin.markdown" "name": "punctuation.definition.string.begin.markdown"
}, },
"14": { "15": {
"name": "punctuation.definition.string.end.markdown" "name": "punctuation.definition.string.end.markdown"
}, },
"15": { "16": {
"name": "punctuation.definition.metadata.markdown" "name": "punctuation.definition.metadata.markdown"
} }
}, },
"match": "(?x)\n (\\[)((?<square>[^\\[\\]\\\\]|\\\\.|\\[\\g<square>*+\\])*+)(\\])\n # Match the link text.\n (\\() # Opening paren for url\n (<?)(.*?)(>?) # The url\n [ \\t]* # Optional whitespace\n (?:\n ((\\().+?(\\))) # Match title in parens…\n | ((\").+?(\")) # or in 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 (<?)((?<url>[^\\s()]+|\\(\\g<url>*\\))*)(>?) # The url\n [ \\t]* # Optional whitespace\n (?:\n ((\\().+?(\\))) # Match title in parens…\n | ((\").+?(\")) # or in quotes.\n )? # Title is optional\n \\s* # Optional whitespace\n (\\))\n",
"name": "meta.link.inline.markdown" "name": "meta.link.inline.markdown"
}, },
"link-ref": { "link-ref": {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册