Commits

Daniele Varrazzo committed 89e3f42

Handle sql placeholders in PostgreSQL lexer

Comments (0)

Files changed (1)

pygments/lexers/postgres.py

             (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?