     ]
   }
   {
-    begin: "^(\\s*)(script)(?=[.#(\\s])((?![^\\n]*type=)|(?=[^\\n]*(text|application)/javascript))"
+    begin: "^(\\s*)(script)(?=[.#(\\s])((?![^\\n]*type=)|(?=[^\\n]*type=['\"](text|application)/javascript['\"]))"
     beginCaptures:
       "2":
         name: "entity.name.tag.script.pug"

      }
      {
        include: "source.css"
      }
    ]
  }

    ]
  }
  {
    begin: "^(\\s*)(script)(?=[.#(\\s])(?=[^\\n]*type=['\"](?:(text|application)/)?(?:x-)?coffee(?:-script)?['\"])"
    beginCaptures:
      "2":
        name: "entity.name.tag.script.pug"
    comment: "Script tag with CoffeeScript 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.coffee"
      }
    ]
  }
  {
    begin: "^(\\s*)(style)(?=[.#(\\s])((?![^\\n]*type=)|(?=[^\\n]*type=['\"](?:text/)?css['\"]))"
    beginCaptures:
      "2":
        name: "entity.name.tag.script.pug"
