diff --git a/src/languages/livescript.js b/src/languages/livescript.js index 4584ef82e2..97c4f244ad 100644 --- a/src/languages/livescript.js +++ b/src/languages/livescript.js @@ -81,7 +81,7 @@ function(hljs) { { // regex can't start with space to parse x / 2 / 3 as two divisions // regex can't start with *, and it supports an "illegal" in the main mode - begin: /\/(?![ *])(\\\/|.)*?\/[gim]*(?=\W)/ + begin: /\/(?![ *])(\\.|[^\\\n])*?\/[gim]*(?=\W)/ } ] },