Commits

Georg Brandl  committed a5a11c7

Small PHP lexer string escaping fix (#515).

  • Participants
  • Parent commits 143e125

Comments (0)

Files changed (2)

 
 - Update Haml/Sass lexers to version 3 (#509).
 
+- Small PHP lexer string escaping fix (#515).
+
 
 Version 1.3.1
 -------------

File pygments/lexers/web.py

         'string': [
             (r'"', String.Double, '#pop'),
             (r'[^{$"\\]+', String.Double),
-            (r'\\([nrt\"$]|[0-7]{1,3}|x[0-9A-Fa-f]{1,2})', String.Escape),
+            (r'\\([nrt\"$\\]|[0-7]{1,3}|x[0-9A-Fa-f]{1,2})', String.Escape),
             (r'\$[a-zA-Z_][a-zA-Z0-9_]*(\[\S+\]|->[a-zA-Z_][a-zA-Z0-9_]*)?',
              String.Interpol),
             (r'(\{\$\{)(.*?)(\}\})',