mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-19 16:18:58 +01:00
Update grammars (#194614)
This commit is contained in:
@@ -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/jlelong/vscode-latex-basics/commit/01814480aecb9e1280fce20b7302178630755da9",
|
||||
"version": "https://github.com/jlelong/vscode-latex-basics/commit/ff5e3f24ff5f242d62954cf9e124184f27bf24dd",
|
||||
"name": "Markdown",
|
||||
"scopeName": "text.tex.markdown_latex_combined",
|
||||
"patterns": [
|
||||
@@ -45,6 +45,9 @@
|
||||
{
|
||||
"include": "#html"
|
||||
},
|
||||
{
|
||||
"include": "#table"
|
||||
},
|
||||
{
|
||||
"include": "#paragraph"
|
||||
}
|
||||
@@ -2440,7 +2443,7 @@
|
||||
"while": "((^|\\G)([ ]{2,4}|\\t))|(^[ \\t]*$)"
|
||||
},
|
||||
{
|
||||
"begin": "(^|\\G)([ ]{0,3})([0-9]+\\.)([ \\t])",
|
||||
"begin": "(^|\\G)([ ]{0,3})([0-9]+[\\.\\)])([ \\t])",
|
||||
"beginCaptures": {
|
||||
"3": {
|
||||
"name": "punctuation.definition.list.begin.markdown"
|
||||
@@ -2460,7 +2463,7 @@
|
||||
]
|
||||
},
|
||||
"paragraph": {
|
||||
"begin": "(^|\\G)[ ]{0,3}(?=\\S)",
|
||||
"begin": "(^|\\G)[ ]{0,3}(?=[^ \\t\\n])",
|
||||
"name": "meta.paragraph.markdown",
|
||||
"patterns": [
|
||||
{
|
||||
@@ -2473,7 +2476,7 @@
|
||||
"include": "#heading-setext"
|
||||
}
|
||||
],
|
||||
"while": "(^|\\G)((?=\\s*[-=]{3,}\\s*$)|[ ]{4,}(?=\\S))"
|
||||
"while": "(^|\\G)((?=\\s*[-=]{3,}\\s*$)|[ ]{4,}(?=[^ \\t\\n]))"
|
||||
},
|
||||
"raw_block": {
|
||||
"begin": "(^|\\G)([ ]{4}|\\t)",
|
||||
@@ -2494,6 +2497,42 @@
|
||||
],
|
||||
"end": "(^|\\G)-{3}|\\.{3}\\s*$"
|
||||
},
|
||||
"table": {
|
||||
"name": "markup.table.markdown",
|
||||
"begin": "(^|\\G)(\\|)(?=[^|].+\\|\\s*$)",
|
||||
"beginCaptures": {
|
||||
"2": {
|
||||
"name": "punctuation.definition.table.markdown"
|
||||
}
|
||||
},
|
||||
"while": "(^|\\G)(?=\\|)",
|
||||
"patterns": [
|
||||
{
|
||||
"match": "\\|",
|
||||
"name": "punctuation.definition.table.markdown"
|
||||
},
|
||||
{
|
||||
"match": "(?<=\\|)\\s*(:?-+:?)\\s*(?=\\|)",
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "punctuation.separator.table.markdown"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"match": "(?<=\\|)\\s*(?=\\S)((\\\\\\||[^|])+)(?<=\\S)\\s*(?=\\|)",
|
||||
"captures": {
|
||||
"1": {
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#inline"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"inline": {
|
||||
"patterns": [
|
||||
{
|
||||
@@ -2956,7 +2995,7 @@
|
||||
"name": "punctuation.definition.link.title.end.markdown"
|
||||
}
|
||||
},
|
||||
"match": "(?<![\\]\\\\])(\\[)(\\S+?)(\\])",
|
||||
"match": "(?<![\\]\\\\])(\\[)((?:[^\\s\\[\\]\\\\]|\\\\[\\[\\]])+?)((?<!\\\\)\\])",
|
||||
"name": "meta.link.reference.markdown"
|
||||
},
|
||||
"raw": {
|
||||
|
||||
Reference in New Issue
Block a user