From 5b9f3f3e9cc311b7043d94970ae6dbc8fe7fefca Mon Sep 17 00:00:00 2001 From: Jesse Claven Date: Mon, 18 Dec 2017 11:18:57 +0100 Subject: Add more Postgres types. [1] [1] https://www.postgresql.org/docs/9.5/static/datatype.html#DATATYPE-TABLE --- sqlparse/keywords.py | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) (limited to 'sqlparse') diff --git a/sqlparse/keywords.py b/sqlparse/keywords.py index af5e348..b5b59e8 100644 --- a/sqlparse/keywords.py +++ b/sqlparse/keywords.py @@ -811,6 +811,33 @@ KEYWORDS_PLPGSQL = { 'INHERIT': tokens.Keyword, 'INDEXES': tokens.Keyword, + 'BYTEA': tokens.Keyword, + 'BIGSERIAL': tokens.Keyword, + 'BIT VARYING': tokens.Keyword, + 'BOX': tokens.Keyword, + 'CHARACTER': tokens.Keyword, + 'CHARACTER VARYING': tokens.Keyword, + 'CIDR': tokens.Keyword, + 'CIRCLE': tokens.Keyword, + 'DOUBLE PRECISION': tokens.Keyword, + 'INET': tokens.Keyword, + 'JSON': tokens.Keyword, + 'JSONB': tokens.Keyword, + 'LINE': tokens.Keyword, + 'LSEG': tokens.Keyword, + 'MACADDR': tokens.Keyword, + 'MONEY': tokens.Keyword, + 'PATH': tokens.Keyword, + 'PG_LSN': tokens.Keyword, + 'POINT': tokens.Keyword, + 'POLYGON': tokens.Keyword, + 'SMALLSERIAL': tokens.Keyword, + 'TSQUERY': tokens.Keyword, + 'TSVECTOR': tokens.Keyword, + 'TXID_SNAPSHOT': tokens.Keyword, + 'UUID': tokens.Keyword, + 'XML': tokens.Keyword, + 'FOR': tokens.Keyword, 'IN': tokens.Keyword, 'LOOP': tokens.Keyword, -- cgit v1.2.1