From 52f26cc94197b1de1c2e01169e40393f2cebd5a5 Mon Sep 17 00:00:00 2001 From: Daniele Varrazzo Date: Tue, 5 Apr 2011 14:49:25 +0100 Subject: Handle PostgreSQL escaped strings --- pygments/lexers/postgres.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pygments/lexers/postgres.py') diff --git a/pygments/lexers/postgres.py b/pygments/lexers/postgres.py index 79cfe3e1..f7c9dd0f 100644 --- a/pygments/lexers/postgres.py +++ b/pygments/lexers/postgres.py @@ -47,7 +47,7 @@ class PostgresLexer(RegexLexer): (r'([0-9]*\.[0-9]*|[0-9]+)(e[+-]?[0-9]+)?', Number.Float), (r'[0-9]+', Number.Integer), # TODO: Backslash escapes? - (r"'(''|[^'])*'", String.Single), + (r"E?'(''|[^'])*'", String.Single), (r'"(""|[^"])*"', String.Name), # quoted identifier (r'[a-zA-Z_][a-zA-Z0-9_]*', Name), -- cgit v1.2.1