Commits

pyos committed e834dac

Put triple-quoted string regex before single-quoted ones.

Comments (0)

Files changed (1)

pygments/lexers/agile.py

             (r'[+-]?\d+\.\d+([eE][+-]?\d+)?', Number.Float),
             (r'[+-]?\d+(\.\d+)?([eE][+-]?\d+)?[jJ]', Number.Complex),
             #  Character/String Literals
+            (r"[br]*'''", String, combined('stringescape', 'tsqs', 'string')),
+            (r'[br]*"""', String, combined('stringescape', 'tdqs', 'string')),
             (r"[br]*'", String, combined('stringescape', 'sqs', 'string')),
             (r'[br]*"', String, combined('stringescape', 'dqs', 'string')),
-            (r"[br]*'''", String, combined('stringescape', 'tsqs', 'string')),
-            (r'[br]*"""', String, combined('stringescape', 'tdqs', 'string')),
             #  Operators
             (r"`\w+'*`", Operator), # Infix links
             #   Reserved infix links