Skip to content

Commit

Permalink
CoffeeScript: prevent strings from ending with a backslash.
Browse files Browse the repository at this point in the history
  • Loading branch information
Golmote committed Jul 12, 2015
1 parent 4868635 commit cb6b824
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions components/prism-coffeescript.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ Prism.languages.coffeescript = Prism.languages.extend('javascript', {
'string': [

// Strings are multiline
/'(?:\\?[\s\S])*?'/,
/'(?:\\?[^\\])*?'/,

{
// Strings are multiline
pattern: /"(?:\\?[\s\S])*?"/,
pattern: /"(?:\\?[^\\])*?"/,
inside: {
'interpolation': interpolation
}
Expand Down
2 changes: 1 addition & 1 deletion components/prism-coffeescript.min.js

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

0 comments on commit cb6b824

Please sign in to comment.