Skip to content

Commit 1ad8aef

Browse files
committed
Update grammar files to jlelong/vscode-latex-basics@221a244
1 parent f807eba commit 1ad8aef

File tree

3 files changed

+61
-7
lines changed

3 files changed

+61
-7
lines changed

syntax/LaTeX.tmLanguage.json

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2064,7 +2064,22 @@
20642064
]
20652065
},
20662066
{
2067-
"begin": "(?<!\\\\)(\\`\\`)",
2067+
"begin": "(,,)",
2068+
"beginCaptures": {
2069+
"1": {
2070+
"name": "punctuation.definition.string.begin.latex"
2071+
}
2072+
},
2073+
"end": "(?<!\\\\)(\\`\\`)",
2074+
"endCaptures": {
2075+
"1": {
2076+
"name": "punctuation.definition.string.end.latex"
2077+
}
2078+
},
2079+
"name": "string.quoted.double.latex"
2080+
},
2081+
{
2082+
"begin": "(?<!\\\\|\\\\catcode|\\\\string)(\\`\\`)",
20682083
"beginCaptures": {
20692084
"1": {
20702085
"name": "punctuation.definition.string.begin.latex"

syntax/cpp-grammar-bailout.tmLanguage.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

syntax/markdown-latex-combined.tmLanguage.json

Lines changed: 44 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"If you want to provide a fix or improvement, please create a pull request against the original repository.",
55
"Once accepted there, we are happy to receive an update request."
66
],
7-
"version": "https://github.com/microsoft/vscode-markdown-tm-grammar/commit/e2af2e59c84c47b7b3c3ea690d74e7001bab96a1",
7+
"version": "https://github.com/microsoft/vscode-markdown-tm-grammar/commit/0a4b23580308fdcfb4ab7b526e3e13ba17d436fb",
88
"name": "Markdown",
99
"scopeName": "text.tex.markdown_latex_combined",
1010
"patterns": [
@@ -45,6 +45,9 @@
4545
{
4646
"include": "#html"
4747
},
48+
{
49+
"include": "#table"
50+
},
4851
{
4952
"include": "#paragraph"
5053
}
@@ -2440,7 +2443,7 @@
24402443
"while": "((^|\\G)([ ]{2,4}|\\t))|(^[ \\t]*$)"
24412444
},
24422445
{
2443-
"begin": "(^|\\G)([ ]{0,3})([0-9]+\\.)([ \\t])",
2446+
"begin": "(^|\\G)([ ]{0,3})([0-9]+[\\.\\)])([ \\t])",
24442447
"beginCaptures": {
24452448
"3": {
24462449
"name": "punctuation.definition.list.begin.markdown"
@@ -2460,7 +2463,7 @@
24602463
]
24612464
},
24622465
"paragraph": {
2463-
"begin": "(^|\\G)[ ]{0,3}(?=\\S)",
2466+
"begin": "(^|\\G)[ ]{0,3}(?=[^ \\t\\n])",
24642467
"name": "meta.paragraph.markdown",
24652468
"patterns": [
24662469
{
@@ -2473,7 +2476,7 @@
24732476
"include": "#heading-setext"
24742477
}
24752478
],
2476-
"while": "(^|\\G)((?=\\s*[-=]{3,}\\s*$)|[ ]{4,}(?=\\S))"
2479+
"while": "(^|\\G)((?=\\s*[-=]{3,}\\s*$)|[ ]{4,}(?=[^ \\t\\n]))"
24772480
},
24782481
"raw_block": {
24792482
"begin": "(^|\\G)([ ]{4}|\\t)",
@@ -2494,6 +2497,42 @@
24942497
],
24952498
"end": "(^|\\G)-{3}|\\.{3}\\s*$"
24962499
},
2500+
"table": {
2501+
"name": "markup.table.markdown",
2502+
"begin": "(^|\\G)(\\|)(?=[^|].+\\|\\s*$)",
2503+
"beginCaptures": {
2504+
"2": {
2505+
"name": "punctuation.definition.table.markdown"
2506+
}
2507+
},
2508+
"while": "(^|\\G)(?=\\|)",
2509+
"patterns": [
2510+
{
2511+
"match": "\\|",
2512+
"name": "punctuation.definition.table.markdown"
2513+
},
2514+
{
2515+
"match": "(?<=\\|)\\s*(:?-+:?)\\s*(?=\\|)",
2516+
"captures": {
2517+
"1": {
2518+
"name": "punctuation.separator.table.markdown"
2519+
}
2520+
}
2521+
},
2522+
{
2523+
"match": "(?<=\\|)\\s*(?=\\S)((\\\\\\||[^|])+)(?<=\\S)\\s*(?=\\|)",
2524+
"captures": {
2525+
"1": {
2526+
"patterns": [
2527+
{
2528+
"include": "#inline"
2529+
}
2530+
]
2531+
}
2532+
}
2533+
}
2534+
]
2535+
},
24972536
"inline": {
24982537
"patterns": [
24992538
{
@@ -2956,7 +2995,7 @@
29562995
"name": "punctuation.definition.link.title.end.markdown"
29572996
}
29582997
},
2959-
"match": "(?<![\\]\\\\])(\\[)(\\S+?)(\\])",
2998+
"match": "(?<![\\]\\\\])(\\[)((?:[^\\s\\[\\]\\\\]|\\\\[\\[\\]])+?)((?<!\\\\)\\])",
29602999
"name": "meta.link.reference.markdown"
29613000
},
29623001
"raw": {

0 commit comments

Comments
 (0)