vendor/assets/javascripts/prism-javascript.js in highlighting-0.1.2 vs vendor/assets/javascripts/prism-javascript.js in highlighting-0.1.3

- old
+ new

@@ -6,16 +6,18 @@ }); Prism.languages.insertBefore('javascript', 'keyword', { 'regex': { pattern: /(^|[^/])\/(?!\/)(\[.+?]|\\.|[^/\\\r\n])+\/[gimyu]{0,5}(?=\s*($|[\r\n,.;})]))/, - lookbehind: true + lookbehind: true, + greedy: true } }); Prism.languages.insertBefore('javascript', 'class-name', { 'template-string': { - pattern: /`(?:\\`|\\?[^`])*`/, + pattern: /`(?:\\\\|\\?[^\\])*?`/, + greedy: true, inside: { 'interpolation': { pattern: /\$\{[^}]+\}/, inside: { 'interpolation-punctuation': { \ No newline at end of file