summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDoug <pyos100500@gmail.com>2012-10-11 21:08:06 +0400
committerDoug <pyos100500@gmail.com>2012-10-11 21:08:06 +0400
commit0a24af81d3fe287eb87c6967dcc0c11cc2197515 (patch)
tree2c7cc421f6052fecb69647668612cc16c15bfacd
parent36fafec4e15b2892b1636a5662ff5778d3faeaec (diff)
downloadpygments-0a24af81d3fe287eb87c6967dcc0c11cc2197515.tar.gz
Put triple-quoted string regex before single-quoted ones.
-rw-r--r--pygments/lexers/agile.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pygments/lexers/agile.py b/pygments/lexers/agile.py
index 33f2ee4c..04f11a40 100644
--- a/pygments/lexers/agile.py
+++ b/pygments/lexers/agile.py
@@ -1842,10 +1842,10 @@ class DgLexer(RegexLexer):
(r'[+-]?\d+\.\d+([eE][+-]?\d+)?', Number.Float),
(r'[+-]?\d+(\.\d+)?([eE][+-]?\d+)?[jJ]', Number.Complex),
# Character/String Literals
- (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')),
+ (r"[br]*'", String, combined('stringescape', 'sqs', 'string')),
+ (r'[br]*"', String, combined('stringescape', 'dqs', 'string')),
# Operators
(r"`\w+'*`", Operator), # Infix links
# Reserved infix links