Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save graywh/893029 to your computer and use it in GitHub Desktop.
Save graywh/893029 to your computer and use it in GitHub Desktop.
syn region javaScriptRegexpString start=+/[^/*]+me=e-1 skip=+\\\\\|\\/+ end=+/[gim]\{0,3\}\s*$+ end=+/[gim]\{0,3\}\s*[;.,)\]}]+me=e-1 contains=@htmlPreproc oneline
data = data.replace(/(\r\n|\n|\r)/gm, "").replace(/'/g, "\\'");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment