vendor/assets/javascripts/prism-puppet.js in prism-rails-1.5.1 vs vendor/assets/javascripts/prism-puppet.js in prism-rails-1.5.1.2

- old
+ new

@@ -39,10 +39,10 @@ lookbehind: true, alias: 'comment' }, 'regex': { // Must be prefixed with the keyword "node" or a non-word char - pattern: /((?:\bnode\s+|[^\s\w\\]\s*))\/(?:[^\/\\]|\\[\s\S])+\/(?:[imx]+\b|\B)/, + pattern: /((?:\bnode\s+|[~=\(\[\{,]\s*|[=+]>\s*|^\s*))\/(?:[^\/\\]|\\[\s\S])+\/(?:[imx]+\b|\B)/, lookbehind: true, inside: { // Extended regexes must have the x flag. They can contain single-line comments. 'extended-regex': { pattern: /^\/(?:[^\/\\]|\\[\s\S])+\/[im]*x[im]*$/, \ No newline at end of file