syntaxes/latexblock.json

Fri, 29 May 2020 16:24:55 -0500

author
Tuomo Valkonen <tuomov@iki.fi>
date
Fri, 29 May 2020 16:24:55 -0500
changeset 25
08aa7e744f79
parent 0
aa9fc390ce91
permissions
-rw-r--r--

bump version


{
	"fileTypes": [],
	"injectionSelector": "L:text.html.markdown",
	"patterns": [
		{
			"include": "#fenced_code_block_latex"
		}
	],
	"repository": {
		"fenced_code_block_latex": {
			"begin": "(^|\\G)(\\s*)(`{3,}|~{3,})\\s*(latex)\\s*(?:\\{[^\\{\\}]*\\})?\\s*$",
			"name": "markup.fenced_code.block.markdown",
			"end": "(^|\\G)(\\2|\\s{0,3})(\\3)\\s*$",
			"beginCaptures": {
				"3": {
						"name": "punctuation.definition.markdown"
				},
				"4": {
						"name": "fenced_code.block.language"
				}
			},
			"endCaptures": {
					"3": {
							"name": "punctuation.definition.markdown"
					}
			},
			"patterns": [
				{
					"begin": "(^|\\G)(\\s*)(.*)",
					"while": "(^|\\G)(?!\\s*([`~]{3,})\\s*$)",
					"contentName": "meta.embedded.block.latex",
					"patterns": [
						{
							"include": "text.tex.latex"
						}
					]
				}
			]
		}
	},
	"scopeName": "markdown.latex.codeblock"
}

mercurial