Edit the HTML.tmLanguage file, replacing: <string>(?:^\s+)?(<)((?i:script))\b(?![^>]*/>)</string> with: <string>(?:^\s+)?(<)((?i:script))\b(?!([^>]*text/x-handlebars[^>]*|[^>]*/>))</string>