--- 
name: Rd (R Documentation)
fileTypes: 
- rd
scopeName: text.tex.latex.rd
uuid: 80A00288-FE7E-4E66-B5BF-4948A2828203
foldingStartMarker: /\w*\{\s*$
patterns: 
- name: meta.section.rd
  endCaptures: 
    "1": 
      name: punctuation.definition.arguments.end.rd
  begin: ((\\)(?:alias|docType|keyword|name|title))(\{)
  contentName: entity.name.tag.rd
  beginCaptures: 
    "1": 
      name: keyword.other.section.rd
    "2": 
      name: punctuation.definition.function.rd
    "3": 
      name: punctuation.definition.arguments.begin.rd
  end: (\})
  patterns: 
  - include: $self
- name: meta.section.rd
  endCaptures: 
    "1": 
      name: punctuation.definition.arguments.end.rd
  begin: ((\\)(?:details|format|references|source))(\{)
  beginCaptures: 
    "1": 
      name: keyword.other.section.rd
    "2": 
      name: punctuation.definition.function.rd
    "3": 
      name: punctuation.definition.arguments.begin.rd
  end: (\})
  patterns: 
  - include: $self
- name: meta.usage.rd
  endCaptures: 
    "1": 
      name: punctuation.definition.arguments.end.rd
  begin: ((\\)(?:usage))(\{)(?:\n)?
  contentName: source.r.embedded
  beginCaptures: 
    "1": 
      name: keyword.other.usage.rd
    "2": 
      name: punctuation.definition.function.rd
    "3": 
      name: punctuation.definition.arguments.begin.rd
  end: (\})
  patterns: 
  - include: source.r
- name: meta.examples.rd
  endCaptures: 
    "1": 
      name: punctuation.definition.arguments.end.rd
  begin: ((\\)(?:examples))(\{)(?:\n)?
  contentName: source.r.embedded
  beginCaptures: 
    "1": 
      name: keyword.other.examples.rd
    "2": 
      name: punctuation.definition.function.rd
    "3": 
      name: punctuation.definition.arguments.begin.rd
  end: (\})
  patterns: 
  - include: source.r
- name: meta.author.rd
  captures: 
    "6": 
      name: markup.underline.link.rd
    "7": 
      name: punctuation.definition.link.rd
    "1": 
      name: keyword.other.author.rd
    "2": 
      name: punctuation.definition.function.rd
    "3": 
      name: punctuation.definition.arguments.begin.rd
    "4": 
      name: entity.name.tag.author.rd
    "5": 
      name: punctuation.definition.link.rd
  match: ((\\)(?:author))(\{)([\w\s]+?)\s+(<)([^>]*)(>)
- include: text.tex.latex
foldingStopMarker: ^\s*\}
keyEquivalent: ^~R
