Skip to content

Commit

Permalink
C-like: Add support for unclosed block comments. Close #828
Browse files Browse the repository at this point in the history
  • Loading branch information
Golmote committed Sep 9, 2017
1 parent 2760ab5 commit 3426ed1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion components/prism-clike.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Prism.languages.clike = {
'comment': [
{
pattern: /(^|[^\\])\/\*[\s\S]*?\*\//,
pattern: /(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,
lookbehind: true
},
{
Expand Down
2 changes: 1 addition & 1 deletion components/prism-clike.min.js

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

2 changes: 1 addition & 1 deletion prism.js
Original file line number Diff line number Diff line change
Expand Up @@ -657,7 +657,7 @@ if (Prism.languages.markup) {
Prism.languages.clike = {
'comment': [
{
pattern: /(^|[^\\])\/\*[\s\S]*?\*\//,
pattern: /(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,
lookbehind: true
},
{
Expand Down

0 comments on commit 3426ed1

Please sign in to comment.