From 36aae230c886fb0b2e5b8c79aec03cee0c40256a Mon Sep 17 00:00:00 2001 From: Daniele Varrazzo Date: Mon, 4 Apr 2011 12:37:08 +0100 Subject: Multi-character operators in PostgreSQL --- 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 a460d1fe..8b584811 100644 --- a/pygments/lexers/postgres.py +++ b/pygments/lexers/postgres.py @@ -42,7 +42,7 @@ class PostgresLexer(RegexLexer): (r'(' + '|'.join([s.replace(" ", "\s+") for s in DATATYPES]) + r')\b', Name.Builtin), (r'(' + '|'.join(KEYWORDS) + r')\b', Keyword), - (r'[+*/<>=~!@#%^&|`?^-]', Operator), + (r'[+*/<>=~!@#%^&|`?^-]+', Operator), (r'::', Operator), # cast (r'([0-9]*\.[0-9]*|[0-9]+)(e[+-]?[0-9]+)?', Number.Float), (r'[0-9]+', Number.Integer), -- cgit v1.2.1