Commits

Gaurav Jain  committed 9447a57

Fixed LiveScript backslash strings to terminate on whitespace

  • Participants
  • Parent commits 33931e7

Comments (0)

Files changed (2)

File pygments/lexers/web.py

             ("'''", String, 'tsqs'),
             ('"', String, 'dqs'),
             ("'", String, 'sqs'),
-            (r'\\[\w$-]+', String),
+            (r'\\\S+', String),
             (r'<\[.*?\]>', String),
         ],
         'strings': [

File tests/examplefiles/livescript-demo.ls

 underscores_i$d = ->
   /regexp1/
   //regexp2//g
-  'strings' and "strings" and \strings
+  'strings' and "strings" and \strings and \#$-"\'strings
 
 another-word-list = <[ more words ]>