Skip to content

Instantly share code, notes, and snippets.

@fabriciotav
Created June 6, 2013 14:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fabriciotav/5721941 to your computer and use it in GitHub Desktop.
Save fabriciotav/5721941 to your computer and use it in GitHub Desktop.
How not be annoyed by JavaScript syntax when using type="text/x-handlebars" with Sublime Text 2

Edit the HTML.tmLanguage file, replacing:

<string>(?:^\s+)?(&lt;)((?i:script))\b(?![^&gt;]*/&gt;)</string>

with:

<string>(?:^\s+)?(&lt;)((?i:script))\b(?!([^&gt;]*text/x-handlebars[^&gt;]*|[^&gt;]*/>))</string>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment