Commits

Anonymous committed f023ef2

[svn] another small update in c# lexer for multiline strings

  • Participants
  • Parent commits 1afc43c
  • Branches trunk

Comments (0)

Files changed (1)

pygments/lexers/dotnet.py

             (r'\n', Text),
             (r'[~!%^&*()+=|\[\]:;,.<>/?-]', Text),
             (r'[{}]', Keyword),
-            (r'"(\\\\|\\"|[^"])*"', String),
+            (r'@"(\\\\|\\"|[^"])*"', String),
+            (r'"(\\\\|\\"|[^\n"])*"', String),
             (r"'\\.'|'[^\\]'", String.Char),
             (r"[0-9](\.[0-9]*)?([eE][+-][0-9]+)?"
              r"[flFLdD]?|0[xX][0-9a-fA-F]+[Ll]?", Number),