Skip to content

Commit

Permalink
Make PHP comments greedy. Fix #197
Browse files Browse the repository at this point in the history
  • Loading branch information
Golmote committed Jul 5, 2016
1 parent 5c815d3 commit 318aab3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion components/prism-php.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ Prism.languages.php = Prism.languages.extend('clike', {
'constant': /\b[A-Z0-9_]{2,}\b/,
'comment': {
pattern: /(^|[^\\])(?:\/\*[\w\W]*?\*\/|\/\/.*)/,
lookbehind: true
lookbehind: true,
greedy: true
}
});

Expand Down
2 changes: 1 addition & 1 deletion components/prism-php.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 318aab3

Please sign in to comment.