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

- old
+ new

@@ -14,10 +14,11 @@ Prism.languages.php = Prism.languages.extend('clike', { 'keyword': /\b(and|or|xor|array|as|break|case|cfunction|class|const|continue|declare|default|die|do|else|elseif|enddeclare|endfor|endforeach|endif|endswitch|endwhile|extends|for|foreach|function|include|include_once|global|if|new|return|static|switch|use|require|require_once|var|while|abstract|interface|public|implements|private|protected|parent|throw|null|echo|print|trait|namespace|final|yield|goto|instanceof|finally|try|catch)\b/i, 'constant': /\b[A-Z0-9_]{2,}\b/, 'comment': { pattern: /(^|[^\\])(?:\/\*[\w\W]*?\*\/|\/\/.*)/, - lookbehind: true + lookbehind: true, + greedy: true } }); // Shell-like comments are matched after strings, because they are less // common than strings containing hashes...