Skip to content

Commit

Permalink
Merge pull request #417 from Golmote/prism-multiline-strings
Browse files Browse the repository at this point in the history
Add multiline strings support to C-like. Fixes #66
  • Loading branch information
Golmote committed Jan 11, 2015
2 parents cb52ddd + 3d55585 commit 535266a
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
Expand Up @@ -9,7 +9,7 @@ Prism.languages.clike = {
lookbehind: true
}
],
'string': /("|')(\\?.)*?\1/g,
'string': /("|')(\\\n|\\?.)*?\1/g,
'class-name': {
pattern: /((?:(?:class|interface|extends|implements|trait|instanceof|new)\s+)|(?:catch\s+\())[a-z0-9_\.\\]+/ig,
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 @@ -548,7 +548,7 @@ Prism.languages.clike = {
lookbehind: true
}
],
'string': /("|')(\\?.)*?\1/g,
'string': /("|')(\\\n|\\?.)*?\1/g,
'class-name': {
pattern: /((?:(?:class|interface|extends|implements|trait|instanceof|new)\s+)|(?:catch\s+\())[a-z0-9_\.\\]+/ig,
lookbehind: true,
Expand Down

0 comments on commit 535266a

Please sign in to comment.