Skip to content

Commit 399773d

Browse files
committed
Update grammar files to jlelong/vscode-latex-basics@620451d
1 parent 24b1adb commit 399773d

File tree

4 files changed

+186
-4
lines changed

4 files changed

+186
-4
lines changed

syntax/DocTeX.tmLanguage.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3712,7 +3712,7 @@
37123712
"all-balanced-env": {
37133713
"patterns": [
37143714
{
3715-
"begin": "(?:\\s*)((\\\\)begin)(\\{)((?:\\+?array|equation|(?:IEEE|sub)?eqnarray|multline|align|aligned|alignat|alignedat|flalign|flaligned|flalignat|split|gather|gathered|\\+?cases|(?:display)?math|\\+?[a-zA-Z]*matrix|[pbBvV]?NiceMatrix|[pbBvV]?NiceArray|(?:(?:arg)?(?:mini|maxi)))(?:\\*|!)?)(\\})(\\s*\\n)?",
3715+
"begin": "(?:\\s*)((\\\\)begin)(\\{)((?:\\+?array|equation|(?:IEEE|sub)?eqnarray|multline|align|aligned|alignat|alignedat|flalign|flaligned|flalignat|split|gather|gathered|(?:\\+|d|r|dr)?cases|(?:display)?math|\\+?[a-zA-Z]*matrix|[pbBvV]?NiceMatrix|[pbBvV]?NiceArray|(?:(?:arg)?(?:mini|maxi)))(?:\\*|!)?)(\\})(\\s*\\n)?",
37163716
"captures": {
37173717
"1": {
37183718
"name": "support.function.be.latex"

syntax/LaTeX.tmLanguage.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3615,7 +3615,7 @@
36153615
"all-balanced-env": {
36163616
"patterns": [
36173617
{
3618-
"begin": "(?:\\s*)((\\\\)begin)(\\{)((?:\\+?array|equation|(?:IEEE|sub)?eqnarray|multline|align|aligned|alignat|alignedat|flalign|flaligned|flalignat|split|gather|gathered|\\+?cases|(?:display)?math|\\+?[a-zA-Z]*matrix|[pbBvV]?NiceMatrix|[pbBvV]?NiceArray|(?:(?:arg)?(?:mini|maxi)))(?:\\*|!)?)(\\})(\\s*\\n)?",
3618+
"begin": "(?:\\s*)((\\\\)begin)(\\{)((?:\\+?array|equation|(?:IEEE|sub)?eqnarray|multline|align|aligned|alignat|alignedat|flalign|flaligned|flalignat|split|gather|gathered|(?:\\+|d|r|dr)?cases|(?:display)?math|\\+?[a-zA-Z]*matrix|[pbBvV]?NiceMatrix|[pbBvV]?NiceArray|(?:(?:arg)?(?:mini|maxi)))(?:\\*|!)?)(\\})(\\s*\\n)?",
36193619
"captures": {
36203620
"1": {
36213621
"name": "support.function.be.latex"

syntax/markdown-latex-combined-language-configuration.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,11 @@
1313
["(", "]"],
1414
["\\{", "\\}"],
1515
["\\left(", "\\right)"],
16+
["\\left(", "\\right]"],
1617
["\\left(", "\\right."],
1718
["\\left.", "\\right)"],
1819
["\\left[", "\\right]"],
20+
["\\left[", "\\right)"],
1921
["\\left[", "\\right."],
2022
["\\left.", "\\right]"],
2123
["\\left\\{", "\\right\\}"],

syntax/markdown-latex-combined.tmLanguage.json

Lines changed: 182 additions & 2 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/7418dd20d76c72e82fadee2909e03239e9973b35",
7+
"version": "https://github.com/microsoft/vscode-markdown-tm-grammar/commit/0812fc4b190efc17bfed0d5b4ff918eff8e4e377",
88
"name": "Markdown",
99
"scopeName": "text.tex.markdown_latex_combined",
1010
"patterns": [
@@ -962,6 +962,39 @@
962962
}
963963
]
964964
},
965+
"fenced_code_block_ignore": {
966+
"begin": "(^|\\G)(\\s*)(`{3,}|~{3,})\\s*(?i:(gitignore|ignore)((\\s+|:|,|\\{|\\?)[^`]*)?$)",
967+
"name": "markup.fenced_code.block.markdown",
968+
"end": "(^|\\G)(\\2|\\s{0,3})(\\3)\\s*$",
969+
"beginCaptures": {
970+
"3": {
971+
"name": "punctuation.definition.markdown"
972+
},
973+
"4": {
974+
"name": "fenced_code.block.language.markdown"
975+
},
976+
"5": {
977+
"name": "fenced_code.block.language.attributes.markdown"
978+
}
979+
},
980+
"endCaptures": {
981+
"3": {
982+
"name": "punctuation.definition.markdown"
983+
}
984+
},
985+
"patterns": [
986+
{
987+
"begin": "(^|\\G)(\\s*)(.*)",
988+
"while": "(^|\\G)(?!\\s*([`~]{3,})\\s*$)",
989+
"contentName": "meta.embedded.block.ignore",
990+
"patterns": [
991+
{
992+
"include": "source.ignore"
993+
}
994+
]
995+
}
996+
]
997+
},
965998
"fenced_code_block_js": {
966999
"begin": "(^|\\G)(\\s*)(`{3,}|~{3,})\\s*(?i:(js|jsx|javascript|es6|mjs|cjs|dataviewjs|\\{\\.js.+?\\})((\\s+|:|,|\\{|\\?)[^`]*)?$)",
9671000
"name": "markup.fenced_code.block.markdown",
@@ -1094,6 +1127,39 @@
10941127
}
10951128
]
10961129
},
1130+
"fenced_code_block_jsonl": {
1131+
"begin": "(^|\\G)(\\s*)(`{3,}|~{3,})\\s*(?i:(jsonl|jsonlines)((\\s+|:|,|\\{|\\?)[^`]*)?$)",
1132+
"name": "markup.fenced_code.block.markdown",
1133+
"end": "(^|\\G)(\\2|\\s{0,3})(\\3)\\s*$",
1134+
"beginCaptures": {
1135+
"3": {
1136+
"name": "punctuation.definition.markdown"
1137+
},
1138+
"4": {
1139+
"name": "fenced_code.block.language.markdown"
1140+
},
1141+
"5": {
1142+
"name": "fenced_code.block.language.attributes.markdown"
1143+
}
1144+
},
1145+
"endCaptures": {
1146+
"3": {
1147+
"name": "punctuation.definition.markdown"
1148+
}
1149+
},
1150+
"patterns": [
1151+
{
1152+
"begin": "(^|\\G)(\\s*)(.*)",
1153+
"while": "(^|\\G)(?!\\s*([`~]{3,})\\s*$)",
1154+
"contentName": "meta.embedded.block.jsonl",
1155+
"patterns": [
1156+
{
1157+
"include": "source.json.lines"
1158+
}
1159+
]
1160+
}
1161+
]
1162+
},
10971163
"fenced_code_block_less": {
10981164
"begin": "(^|\\G)(\\s*)(`{3,}|~{3,})\\s*(?i:(less)((\\s+|:|,|\\{|\\?)[^`]*)?$)",
10991165
"name": "markup.fenced_code.block.markdown",
@@ -1919,6 +1985,105 @@
19191985
}
19201986
]
19211987
},
1988+
"fenced_code_block_yang": {
1989+
"begin": "(^|\\G)(\\s*)(`{3,}|~{3,})\\s*(?i:(yang)((\\s+|:|,|\\{|\\?)[^`]*)?$)",
1990+
"name": "markup.fenced_code.block.markdown",
1991+
"end": "(^|\\G)(\\2|\\s{0,3})(\\3)\\s*$",
1992+
"beginCaptures": {
1993+
"3": {
1994+
"name": "punctuation.definition.markdown"
1995+
},
1996+
"4": {
1997+
"name": "fenced_code.block.language.markdown"
1998+
},
1999+
"5": {
2000+
"name": "fenced_code.block.language.attributes.markdown"
2001+
}
2002+
},
2003+
"endCaptures": {
2004+
"3": {
2005+
"name": "punctuation.definition.markdown"
2006+
}
2007+
},
2008+
"patterns": [
2009+
{
2010+
"begin": "(^|\\G)(\\s*)(.*)",
2011+
"while": "(^|\\G)(?!\\s*([`~]{3,})\\s*$)",
2012+
"contentName": "meta.embedded.block.yang",
2013+
"patterns": [
2014+
{
2015+
"include": "source.yang"
2016+
}
2017+
]
2018+
}
2019+
]
2020+
},
2021+
"fenced_code_block_abap": {
2022+
"begin": "(^|\\G)(\\s*)(`{3,}|~{3,})\\s*(?i:(abap)((\\s+|:|,|\\{|\\?)[^`]*)?$)",
2023+
"name": "markup.fenced_code.block.markdown",
2024+
"end": "(^|\\G)(\\2|\\s{0,3})(\\3)\\s*$",
2025+
"beginCaptures": {
2026+
"3": {
2027+
"name": "punctuation.definition.markdown"
2028+
},
2029+
"4": {
2030+
"name": "fenced_code.block.language.markdown"
2031+
},
2032+
"5": {
2033+
"name": "fenced_code.block.language.attributes.markdown"
2034+
}
2035+
},
2036+
"endCaptures": {
2037+
"3": {
2038+
"name": "punctuation.definition.markdown"
2039+
}
2040+
},
2041+
"patterns": [
2042+
{
2043+
"begin": "(^|\\G)(\\s*)(.*)",
2044+
"while": "(^|\\G)(?!\\s*([`~]{3,})\\s*$)",
2045+
"contentName": "meta.embedded.block.abap",
2046+
"patterns": [
2047+
{
2048+
"include": "source.abap"
2049+
}
2050+
]
2051+
}
2052+
]
2053+
},
2054+
"fenced_code_block_restructuredtext": {
2055+
"begin": "(^|\\G)(\\s*)(`{3,}|~{3,})\\s*(?i:(restructuredtext|rst)((\\s+|:|,|\\{|\\?)[^`]*)?$)",
2056+
"name": "markup.fenced_code.block.markdown",
2057+
"end": "(^|\\G)(\\2|\\s{0,3})(\\3)\\s*$",
2058+
"beginCaptures": {
2059+
"3": {
2060+
"name": "punctuation.definition.markdown"
2061+
},
2062+
"4": {
2063+
"name": "fenced_code.block.language.markdown"
2064+
},
2065+
"5": {
2066+
"name": "fenced_code.block.language.attributes.markdown"
2067+
}
2068+
},
2069+
"endCaptures": {
2070+
"3": {
2071+
"name": "punctuation.definition.markdown"
2072+
}
2073+
},
2074+
"patterns": [
2075+
{
2076+
"begin": "(^|\\G)(\\s*)(.*)",
2077+
"while": "(^|\\G)(?!\\s*([`~]{3,})\\s*$)",
2078+
"contentName": "meta.embedded.block.restructuredtext",
2079+
"patterns": [
2080+
{
2081+
"include": "source.rst"
2082+
}
2083+
]
2084+
}
2085+
]
2086+
},
19222087
"fenced_code_block": {
19232088
"patterns": [
19242089
{
@@ -2002,6 +2167,9 @@
20022167
{
20032168
"include": "#fenced_code_block_pug"
20042169
},
2170+
{
2171+
"include": "#fenced_code_block_ignore"
2172+
},
20052173
{
20062174
"include": "#fenced_code_block_js"
20072175
},
@@ -2014,6 +2182,9 @@
20142182
{
20152183
"include": "#fenced_code_block_jsonc"
20162184
},
2185+
{
2186+
"include": "#fenced_code_block_jsonl"
2187+
},
20172188
{
20182189
"include": "#fenced_code_block_less"
20192190
},
@@ -2089,6 +2260,15 @@
20892260
{
20902261
"include": "#fenced_code_block_twig"
20912262
},
2263+
{
2264+
"include": "#fenced_code_block_yang"
2265+
},
2266+
{
2267+
"include": "#fenced_code_block_abap"
2268+
},
2269+
{
2270+
"include": "#fenced_code_block_restructuredtext"
2271+
},
20922272
{
20932273
"include": "#fenced_code_block_unknown"
20942274
}
@@ -3090,7 +3270,7 @@
30903270
"name": "punctuation.definition.strikethrough.markdown"
30913271
}
30923272
},
3093-
"match": "(?<!\\\\)(~{2,})((?:[^~]|(?!(?<![~\\\\])\\1(?!~))~)*+)(\\1)",
3273+
"match": "(?<!\\\\)(~{2,})(?!(?<=\\w~~)_)((?:[^~]|(?!(?<![~\\\\])\\1(?!~))~)*+)(\\1)(?!(?<=_\\1)\\w)",
30943274
"name": "markup.strikethrough.markdown"
30953275
}
30963276
}

0 commit comments

Comments
 (0)