summaryrefslogtreecommitdiff
path: root/pygments/lexers/web.py
diff options
context:
space:
mode:
authorGaurav Jain <gaurav@gauravjain.org>2014-04-17 17:24:00 -0400
committerGaurav Jain <gaurav@gauravjain.org>2014-04-17 17:24:00 -0400
commit32f94e018695a2c2cea054e99ec69f8622725d3e (patch)
treed1b24bc5814917013b6e20cf9a0fb7ff7e6cf559 /pygments/lexers/web.py
parent84b7c8aca975566dde86fc90a23d49353e534265 (diff)
downloadpygments-32f94e018695a2c2cea054e99ec69f8622725d3e.tar.gz
Fixed LiveScript backslash strings to terminate on whitespace
Diffstat (limited to 'pygments/lexers/web.py')
-rw-r--r--pygments/lexers/web.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pygments/lexers/web.py b/pygments/lexers/web.py
index f8c89204..180c8e8a 100644
--- a/pygments/lexers/web.py
+++ b/pygments/lexers/web.py
@@ -2710,7 +2710,7 @@ class LiveScriptLexer(RegexLexer):
("'''", String, 'tsqs'),
('"', String, 'dqs'),
("'", String, 'sqs'),
- (r'\\[\w$-]+', String),
+ (r'\\\S+', String),
(r'<\[.*?\]>', String),
],
'strings': [