name: Tcl fileTypes:

scopeName: source.tcl repository:

escape: 
  name: constant.character.escape.tcl
  match: \\(\d{1,3}|x[a-fA-F0-9]+|u[a-fA-F0-9]{1,4}|.|\n)
bare-string: 
  endCaptures: 
    "1": 
      name: invalid.illegal.tcl
  begin: (?:^|(?<=\s))"
  end: "\"([^\\s\\]]*)"
  patterns: 
  - include: "#escape"
  - include: "#variable"
  comment: matches a single quote-enclosed word without scoping
regexp: 
  begin: (?=\S)(?![\n;\]])
  end: (?=[\n;\]])
  patterns: 
  - name: string.regexp.tcl
    begin: (?=[^ \t\n;])
    end: (?=[ \t\n;])
    patterns: 
    - include: "#braces"
    - include: "#bare-string"
    - include: "#escape"
    - include: "#variable"
  - begin: "[ \\t]"
    end: (?=[\n;\]])
    patterns: 
    - include: "#variable"
    - include: "#embedded"
    - include: "#escape"
    - include: "#braces"
    - include: "#string"
    comment: swallow the rest of the command
  comment: matches a single word, named as a regexp, then swallows the rest of the command
braces: 
  endCaptures: 
    "1": 
      name: invalid.illegal.tcl
  begin: (?:^|(?<=\s))\{
  end: \}([^\s\]]*)
  patterns: 
  - name: constant.character.escape.tcl
    match: \\[{}\n]
  - include: "#inner-braces"
  comment: matches a single brace-enclosed word
inner-braces: 
  begin: \{
  end: \}
  patterns: 
  - name: constant.character.escape.tcl
    match: \\[{}\n]
  - include: "#inner-braces"
  comment: matches a nested brace in a brace-enclosed word
variable: 
  name: variable.other.tcl
  captures: 
    "1": 
      name: punctuation.definition.variable.tcl
  match: (\$)([a-zA-Z0-9_:]+(\([^\)]+\))?|\{[^\}]*\})
string: 
  name: string.quoted.double.tcl
  begin: (?:^|(?<=\s))(?=")
  applyEndPatternLast: 1
  end: ""
  patterns: 
  - include: "#bare-string"
  comment: matches a single quote-enclosed word with scoping
embedded: 
  name: source.tcl.embedded
  endCaptures: 
    "0": 
      name: punctuation.section.embedded.end.tcl
  begin: \[
  beginCaptures: 
    "0": 
      name: punctuation.section.embedded.begin.tcl
  end: \]
  patterns: 
  - include: source.tcl

uuid: F01F22AC-7CBB-11D9-9B10-000A95E13C98 foldingStartMarker: {s*$ patterns:

foldingStopMarker: ^s*} keyEquivalent: ^~T