From c31850bd847200d25c6c484dd9acfa7e62c86e8a Mon Sep 17 00:00:00 2001 From: Daniele Varrazzo Date: Tue, 5 Apr 2011 15:58:17 +0100 Subject: Handle sql placeholders in PostgreSQL lexer --- pygments/lexers/postgres.py | 1 + 1 file changed, 1 insertion(+) (limited to 'pygments/lexers/postgres.py') diff --git a/pygments/lexers/postgres.py b/pygments/lexers/postgres.py index f7c9dd0f..412d7448 100644 --- a/pygments/lexers/postgres.py +++ b/pygments/lexers/postgres.py @@ -44,6 +44,7 @@ class PostgresLexer(RegexLexer): (r'(' + '|'.join(KEYWORDS) + r')\b', Keyword), (r'[+*/<>=~!@#%^&|`?^-]+', Operator), (r'::', Operator), # cast + (r'\$\d+', Name.Variable), (r'([0-9]*\.[0-9]*|[0-9]+)(e[+-]?[0-9]+)?', Number.Float), (r'[0-9]+', Number.Integer), # TODO: Backslash escapes? -- cgit v1.2.1