<commit_before>fileTypes: [
  "jade",
  "pug"
]
name: "Pug"
patterns: [
  {
    include: "#unbuffered_comments"
  }
  {
    include: "#buffered_comments"
  }
  {
    comment: "Doctype declaration."
    match: "^(!!!|doctype)(\\s*[a-zA-Z0-9-_]+)?"
    name: "comment.other.doctype.jade"
  }
  {
    begin: "^(\\s*)-$"
    comment: "Unbuffered code block."
    end: "^(?!(\\1\\s)|\\s*$)"
    name: "source.js"
    patterns: [
      {
        include: "source.js"
      }
    ]
  }
  {
    begin: "^(\\s*)(script)(?=[.#(\\s])((?![^\\n]*type=)|(?=[^\\n]*(text|application)/javascript))"
    beginCaptures:
      "2":
        name: "entity.name.tag.script.pug"
    comment: "Script tag with JavaScript code."
    end: "^(?!(\\1\\s)|\\s*$)"
    name: "source.script.jade"
    patterns: [
      {
        begin: "\\G(?=\\()"
        end: "$"
        name: "stuff.tag.script.pug"
        patterns: [
          {
            include: "#tag_attributes"
          }
        ]
      }
      {
        begin: "\\G(?=[.#])"
        end: "$"
        name: "stuff.tag.script.pug"
        patterns: [
          {
            include: "#complete_tag"
          }
        ]
      }
      {
        include: "source.js"
      }
    ]
  }
  {
    begin: "^(\\s*)(style)((\\.$)|(?=[.#(].*\\.$))"
    beginCaptures:
      "2":
        name: "entity.name.tag.script.pug"
    comment: "Style tag with CSS code."
    end: "^(?!(\\1\\s)|\\s*$)"
    name: "source.script.jade"
    patterns: [
      {
        begin: "\\G(?=\\()"
        end: "$"
        name: "stuff.tag.style.pug"
        patterns: [
          {
            include: "#tag_attributes"
          }
        ]
      }
      {
        begin: "\\G(?=[.#])"
        end: "$"
        name: "stuff.tag.style.pug"
        patterns: [
          {
            include: "#complete_tag"
          }
        ]
      }
      {
        include: "source.css"
      }
    ]
  }
  {
    begin: "^(\\s*):(markdown)(?=\\(|$)$"
    beginCaptures:
      "2":
        name: "constant.language.name.markdown.filter.pug"
    end: "^(?!(\\1\\s)|\\s*$)"
    name: "text.markdown.filter.pug"
    patterns: [
      {
        include: "#filter_args"
      }
      {
        include: "text.html.markdown"
      }
    ]
  }
  {
    begin: "^(\\s*):(sass)(?=\\(|$)$"
    beginCaptures:
      "2":
        name: "constant.language.name.sass.filter.pug"
    end: "^(?!(\\1\\s)|\\s*$)"
    name: "source.sass.filter.pug"
    patterns: [
      {
        include: "#filter_args"
      }
      {
        include: "source.sass"
      }
    ]
  }
  {
    begin: "^(\\s*):(less)(?=\\(|$)$"
    beginCaptures:
      "2":
        name: "constant.language.name.less.filter.pug"
    end: "^(?!(\\1\\s)|\\s*$)"
    name: "source.less.filter.pug"
    patterns: [
      {
        include: "#filter_args"
      }
      {
        include: "source.less"
      }
    ]
  }
  {
    begin: "^(\\s*):(stylus)(?=\\(|$)$"
    beginCaptures:
      "2":
        name: "constant.language.name.stylus.filter.pug"
    end: "^(?!(\\1\\s)|\\s*$)"
    patterns: [
      {
        include: "#filter_args"
      }
      {
        include: "source.stylus"
      }
    ]
  }
  {
    begin: "^(\\s*):(coffee(-?script)?)(?=\\(|$)"
    beginCaptures:
      "2":
        name: "constant.language.name.coffeescript.filter.pug"
    end: "^(?!(\\1\\s)|\\s*$)"
    name: "source.coffeescript.filter.pug"
    patterns: [
      {
        include: "#filter_args"
      }
      {
        include: "source.coffee"
      }
    ]
  }
  {
    begin: "^(\\s*)((:(?=.))|(:$))"
    beginCaptures:
      "4":
        name: "invalid.illegal.empty.generic.filter.pug"
    comment: "Generic pug filter."
    end: "^(?!(\\1\\s)|\\s*$)"
    name: "text.generic.filter.pug"
    patterns: [
      {
        begin: "\\G(?<=:)(?=.)"
        end: "$"
        name: "name.generic.filter.pug"
        patterns: [<commit_msg>moved coffee filter to under <script> block added babel filter under <script> block (eslint also works with pug plugin and adding 'source.babel.filter.pug' in scope settings)<commit_after>fileTypes: [
  "jade",
  "pug"
]
name: "Pug"
patterns: [
  {
    include: "#unbuffered_comments"
  }
  {
    include: "#buffered_comments"
  }
  {
    comment: "Doctype declaration."
    match: "^(!!!|doctype)(\\s*[a-zA-Z0-9-_]+)?"
    name: "comment.other.doctype.jade"
  }
  {
    begin: "^(\\s*)-$"
    comment: "Unbuffered code block."
    end: "^(?!(\\1\\s)|\\s*$)"
    name: "source.js"
    patterns: [
      {
        include: "source.js"
      }
    ]
  }
  {
    begin: "^(\\s*)(script)(?=[.#(\\s])((?![^\\n]*type=)|(?=[^\\n]*(text|application)/javascript))"
    beginCaptures:
      "2":
        name: "entity.name.tag.script.pug"
    comment: "Script tag with JavaScript code."
    end: "^(?!(\\1\\s)|\\s*$)"
    name: "source.script.jade"
    patterns: [
      {
        begin: "^(\\s*):(babel)(?=\\(|$)$"
        beginCaptures:
          "2":
            name: "constant.language.name.babel.filter.pug"
        end: "^(?!(\\1\\s)|\\s*$)"
        name: "source.babel.filter.pug"
        patterns: [
          {
            include: "#filter_args"
          }
          {
            include: "source.js.jsx"
          }
        ]
      }
      {
        begin: "^(\\s*):(coffee(-?script)?)(?=\\(|$)"
        beginCaptures:
          "2":
            name: "constant.language.name.coffeescript.filter.pug"
        end: "^(?!(\\1\\s)|\\s*$)"
        name: "source.coffeescript.filter.pug"
        patterns: [
          {
            include: "#filter_args"
          }
          {
            include: "source.coffee"
          }
        ]
      }
      {
        begin: "\\G(?=\\()"
        end: "$"
        name: "stuff.tag.script.pug"
        patterns: [
          {
            include: "#tag_attributes"
          }
        ]
      }
      {
        begin: "\\G(?=[.#])"
        end: "$"
        name: "stuff.tag.script.pug"
        patterns: [
          {
            include: "#complete_tag"
          }
        ]
      }
      {
        include: "source.js"
      }
    ]
  }
  {
    begin: "^(\\s*)(style)((\\.$)|(?=[.#(].*\\.$))"
    beginCaptures:
      "2":
        name: "entity.name.tag.script.pug"
    comment: "Style tag with CSS code."
    end: "^(?!(\\1\\s)|\\s*$)"
    name: "source.script.jade"
    patterns: [
      {
        begin: "\\G(?=\\()"
        end: "$"
        name: "stuff.tag.style.pug"
        patterns: [
          {
            include: "#tag_attributes"
          }
        ]
      }
      {
        begin: "\\G(?=[.#])"
        end: "$"
        name: "stuff.tag.style.pug"
        patterns: [
          {
            include: "#complete_tag"
          }
        ]
      }
      {
        include: "source.css"
      }
    ]
  }
  {
    begin: "^(\\s*):(markdown)(?=\\(|$)$"
    beginCaptures:
      "2":
        name: "constant.language.name.markdown.filter.pug"
    end: "^(?!(\\1\\s)|\\s*$)"
    name: "text.markdown.filter.pug"
    patterns: [
      {
        include: "#filter_args"
      }
      {
        include: "text.html.markdown"
      }
    ]
  }
  {
    begin: "^(\\s*):(sass)(?=\\(|$)$"
    beginCaptures:
      "2":
        name: "constant.language.name.sass.filter.pug"
    end: "^(?!(\\1\\s)|\\s*$)"
    name: "source.sass.filter.pug"
    patterns: [
      {
        include: "#filter_args"
      }
      {
        include: "source.css.sass"
      }
      {
        include: "source.sass"
      }
    ]
  }
  {
    begin: "^(\\s*):(less)(?=\\(|$)$"
    beginCaptures:
      "2":
        name: "constant.language.name.less.filter.pug"
    end: "^(?!(\\1\\s)|\\s*$)"
    name: "source.less.filter.pug"
    patterns: [
      {
        include: "#filter_args"
      }
      {
        include: "source.css.less"
      }
      {
        include: "source.less"
      }
    ]
  }
  {
    begin: "^(\\s*):(stylus)(?=\\(|$)$"
    beginCaptures:
      "2":
        name: "constant.language.name.stylus.filter.pug"
    end: "^(?!(\\1\\s)|\\s*$)"
    name: "source.stylus.filter.pug"
    patterns: [
      {
        include: "#filter_args"
      }
      {
        include: "source.css.stylus"
      }
      {
        include: "source.stylus"
      }
    ]
  }
  {
    begin: "^(\\s*)((:(?=.))|(:$))"
    beginCaptures:
      "4":
        name: "invalid.illegal.empty.generic.filter.pug"
    comment: "Generic pug filter."
    end: "^(?!(\\1\\s)|\\s*$)"
    name: "text.generic.filter.pug"
    patterns: [
      {
        begin: "\\G(?<=:)(?=.)"
        end: "$"
        name: "name.generic.filter.pug"
        patterns: [
{'fraction_non_alphanumeric': 0.22635531565360245, 'fraction_numerical': 0.004693733865289838, 'mean_word_length': 1.467573827446439, 'pattern_counts': {'":': 17, '<': 7, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5585324', 'n_tokens_mistral': 3322, 'n_tokens_neox': 3229, 'n_words': 435}