{ "name": "LaTeX Memoir", "scopeName": "text.tex.latex.memoir", "patterns": [ { "name": "meta.function.memoir-fbox.latex", "begin": "(?:\\s*)((\\\\)begin)(\\{)(framed|shaded|leftbar)(\\})", "end": "((\\\\)end)(\\{)(\\4)(\\})", "patterns": [ { "include": "$self" } ], "captures": { "1": { "name": "support.function.be.latex" }, "2": { "name": "punctuation.definition.function.latex" }, "3": { "name": "punctuation.definition.arguments.begin.latex" }, "4": { "name": "variable.parameter.function.latex" }, "5": { "name": "punctuation.definition.arguments.end.latex" } } }, { "name": "meta.function.memoir-verbatim.latex", "contentName": "markup.raw.verbatim.latex", "begin": "(?:\\s*)((\\\\)begin)(\\{)((?:fboxv|boxedv|V)erbatim)(\\})", "end": "((\\\\)end)(\\{)(\\4)(\\})", "captures": { "1": { "name": "support.function.be.latex" }, "2": { "name": "punctuation.definition.function.latex" }, "3": { "name": "punctuation.definition.arguments.begin.latex" }, "4": { "name": "variable.parameter.function.latex" }, "5": { "name": "punctuation.definition.arguments.end.latex" } } }, { "name": "meta.function.memoir-alltt.latex", "contentName": "markup.raw.verbatim.latex", "begin": "(?:\\s*)((\\\\)begin)(\\{)(alltt)(\\})", "end": "((\\\\)end)(\\{)(alltt)(\\})", "patterns": [ { "name": "support.function.general.tex", "match": "(\\\\)[A-Za-z]+", "captures": { "1": { "name": "punctuation.definition.function.tex" } } } ], "captures": { "1": { "name": "support.function.be.latex" }, "2": { "name": "punctuation.definition.function.latex" }, "3": { "name": "punctuation.definition.arguments.begin.latex" }, "4": { "name": "variable.parameter.function.latex" }, "5": { "name": "punctuation.definition.arguments.end.latex" } } }, { "name": "meta.function.section.$3.latex", "contentName": "entity.name.section.latex", "begin": "(?x)\n\t\t\t\t(\t\t\t\t\t\t\t\t\t\t\t\t\t # Capture 1\n\t\t\t\t\t(\\\\)\t\t\t\t\t\t\t\t\t\t\t # Marker\n\t\t\t\t\t(\n\t\t\t\t\t\t(?:sub){0,2}section\t\t\t # Functions\n\t\t\t\t\t | (?:sub)?paragraph\n\t\t\t\t\t | chapter|part|addpart\n\t\t\t\t\t | addchap|addsec|minisec\n\t\t\t\t\t)\n\t\t\t\t\t(?:\\*)?\t\t\t\t\t\t\t\t\t\t\t# Optional Unnumbered\n\t\t\t\t)\n\t\t\t\t(?:\n\t\t\t\t\t(\\[)([^\\[]*?)(\\])\t\t\t\t\t\t# Options for TOC- and Header-Name\n\t\t\t\t){0,2}?\n\t\t\t\t(\\{)\t\t\t\t\t\t\t\t\t\t\t\t # Opening Bracket\n\t\t\t\t", "end": "\\}", "patterns": [ { "include": "$self" } ], "beginCaptures": { "1": { "name": "support.function.section.latex" }, "2": { "name": "punctuation.definition.function.latex" }, "4": { "name": "punctuation.definition.arguments.optional.begin.latex" }, "5": { "name": "entity.name.section.latex" }, "6": { "name": "punctuation.definition.arguments.optional.end.latex" }, "7": { "name": "punctuation.definition.arguments.begin.latex" } }, "endCaptures": { "0": { "name": "punctuation.definition.arguments.end.latex" } } }, { "include": "text.tex.latex" } ] }