diff options
author | Daniele Varrazzo <daniele.varrazzo@gmail.com> | 2011-04-05 15:58:17 +0100 |
---|---|---|
committer | Daniele Varrazzo <daniele.varrazzo@gmail.com> | 2011-04-05 15:58:17 +0100 |
commit | c31850bd847200d25c6c484dd9acfa7e62c86e8a (patch) | |
tree | 3c7e0ce34a818e3deb054ba43dab37ebdd8c25a9 /pygments/lexers/postgres.py | |
parent | 52f26cc94197b1de1c2e01169e40393f2cebd5a5 (diff) | |
download | pygments-c31850bd847200d25c6c484dd9acfa7e62c86e8a.tar.gz |
Handle sql placeholders in PostgreSQL lexer
Diffstat (limited to 'pygments/lexers/postgres.py')
-rw-r--r-- | pygments/lexers/postgres.py | 1 |
1 files changed, 1 insertions, 0 deletions
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? |