--- 
name: LaTeX Memoir
fileTypes: []

firstLineMatch: ^\\documentclass(\[.*\])?\{memoir\}
scopeName: text.tex.latex.memoir
uuid: D0853B20-ABFF-48AB-8AB9-3D8BA0755C05
foldingStartMarker: \\begin\{.*\}|%.*\(fold\)\s*$
patterns: 
- name: meta.function.memoir-fbox.latex
  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
  begin: (?:\s*)((\\)begin)(\{)(framed|shaded|leftbar)(\})
  end: ((\\)end)(\{)(\4)(\})
  patterns: 
  - include: $self
- name: meta.function.memoir-verbatim.latex
  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
  begin: (?:\s*)((\\)begin)(\{)((?:fboxv|boxedv|V)erbatim)(\})
  contentName: markup.raw.verbatim.latex
  end: ((\\)end)(\{)(\4)(\})
- name: meta.function.memoir-alltt.latex
  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
  begin: (?:\s*)((\\)begin)(\{)(alltt)(\})
  contentName: markup.raw.verbatim.latex
  end: ((\\)end)(\{)(alltt)(\})
  patterns: 
  - name: support.function.general.tex
    captures: 
      "1": 
        name: punctuation.definition.function.tex
    match: (\\)[A-Za-z]+
- include: text.tex.latex
foldingStopMarker: \\end\{.*\}|%.*\(end\)\s*$
keyEquivalent: ^~M
