Commits

Anonymous committed b2b9683

[svn] Small fix in Python lexer.

Comments (0)

Files changed (1)

pygments/lexers/agile.py

     tokens = {
         'root': [
             (r'\n', Text),
-            (r'^\s*"""(.|\n)*?"""', String.Doc),
-            (r"^\s*'''(.|\n)*?'''", String.Doc),
+            (r'^(\s*)("""(?:.|\n)*?""")', bygroups(Text, String.Doc)),
+            (r"^(\s*)('''(?:.|\n)*?''')", bygroups(Text, String.Doc)),
             (r'[^\S\n]+', Text),
             (r'#.*$', Comment),
             (r'[]{}:(),;[]', Punctuation),