diff options
author | Gaurav Jain <gaurav@gauravjain.org> | 2014-04-17 17:24:00 -0400 |
---|---|---|
committer | Gaurav Jain <gaurav@gauravjain.org> | 2014-04-17 17:24:00 -0400 |
commit | 32f94e018695a2c2cea054e99ec69f8622725d3e (patch) | |
tree | d1b24bc5814917013b6e20cf9a0fb7ff7e6cf559 /pygments/lexers/web.py | |
parent | 84b7c8aca975566dde86fc90a23d49353e534265 (diff) | |
download | pygments-32f94e018695a2c2cea054e99ec69f8622725d3e.tar.gz |
Fixed LiveScript backslash strings to terminate on whitespace
Diffstat (limited to 'pygments/lexers/web.py')
-rw-r--r-- | pygments/lexers/web.py | 2 |
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': [ |