|
4 | 4 | "If you want to provide a fix or improvement, please create a pull request against the original repository.", |
5 | 5 | "Once accepted there, we are happy to receive an update request." |
6 | 6 | ], |
7 | | - "version": "https://github.com/microsoft/vscode-markdown-tm-grammar/commit/7418dd20d76c72e82fadee2909e03239e9973b35", |
| 7 | + "version": "https://github.com/microsoft/vscode-markdown-tm-grammar/commit/0812fc4b190efc17bfed0d5b4ff918eff8e4e377", |
8 | 8 | "name": "Markdown", |
9 | 9 | "scopeName": "text.tex.markdown_latex_combined", |
10 | 10 | "patterns": [ |
|
962 | 962 | } |
963 | 963 | ] |
964 | 964 | }, |
| 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 | + }, |
965 | 998 | "fenced_code_block_js": { |
966 | 999 | "begin": "(^|\\G)(\\s*)(`{3,}|~{3,})\\s*(?i:(js|jsx|javascript|es6|mjs|cjs|dataviewjs|\\{\\.js.+?\\})((\\s+|:|,|\\{|\\?)[^`]*)?$)", |
967 | 1000 | "name": "markup.fenced_code.block.markdown", |
|
1094 | 1127 | } |
1095 | 1128 | ] |
1096 | 1129 | }, |
| 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 | + }, |
1097 | 1163 | "fenced_code_block_less": { |
1098 | 1164 | "begin": "(^|\\G)(\\s*)(`{3,}|~{3,})\\s*(?i:(less)((\\s+|:|,|\\{|\\?)[^`]*)?$)", |
1099 | 1165 | "name": "markup.fenced_code.block.markdown", |
|
1919 | 1985 | } |
1920 | 1986 | ] |
1921 | 1987 | }, |
| 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 | + }, |
1922 | 2087 | "fenced_code_block": { |
1923 | 2088 | "patterns": [ |
1924 | 2089 | { |
|
2002 | 2167 | { |
2003 | 2168 | "include": "#fenced_code_block_pug" |
2004 | 2169 | }, |
| 2170 | + { |
| 2171 | + "include": "#fenced_code_block_ignore" |
| 2172 | + }, |
2005 | 2173 | { |
2006 | 2174 | "include": "#fenced_code_block_js" |
2007 | 2175 | }, |
|
2014 | 2182 | { |
2015 | 2183 | "include": "#fenced_code_block_jsonc" |
2016 | 2184 | }, |
| 2185 | + { |
| 2186 | + "include": "#fenced_code_block_jsonl" |
| 2187 | + }, |
2017 | 2188 | { |
2018 | 2189 | "include": "#fenced_code_block_less" |
2019 | 2190 | }, |
|
2089 | 2260 | { |
2090 | 2261 | "include": "#fenced_code_block_twig" |
2091 | 2262 | }, |
| 2263 | + { |
| 2264 | + "include": "#fenced_code_block_yang" |
| 2265 | + }, |
| 2266 | + { |
| 2267 | + "include": "#fenced_code_block_abap" |
| 2268 | + }, |
| 2269 | + { |
| 2270 | + "include": "#fenced_code_block_restructuredtext" |
| 2271 | + }, |
2092 | 2272 | { |
2093 | 2273 | "include": "#fenced_code_block_unknown" |
2094 | 2274 | } |
|
3090 | 3270 | "name": "punctuation.definition.strikethrough.markdown" |
3091 | 3271 | } |
3092 | 3272 | }, |
3093 | | - "match": "(?<!\\\\)(~{2,})((?:[^~]|(?!(?<![~\\\\])\\1(?!~))~)*+)(\\1)", |
| 3273 | + "match": "(?<!\\\\)(~{2,})(?!(?<=\\w~~)_)((?:[^~]|(?!(?<![~\\\\])\\1(?!~))~)*+)(\\1)(?!(?<=_\\1)\\w)", |
3094 | 3274 | "name": "markup.strikethrough.markdown" |
3095 | 3275 | } |
3096 | 3276 | } |
|
0 commit comments