From 313f0f31e2e67229da32393767d4cf500518815a Mon Sep 17 00:00:00 2001 From: Darik Gamble Date: Fri, 6 Feb 2015 14:55:55 -0500 Subject: Add double precision as a built-in datatype --- sqlparse/lexer.py | 1 + 1 file changed, 1 insertion(+) (limited to 'sqlparse') diff --git a/sqlparse/lexer.py b/sqlparse/lexer.py index 631c267..611835f 100644 --- a/sqlparse/lexer.py +++ b/sqlparse/lexer.py @@ -200,6 +200,7 @@ class Lexer(object): (r'END(\s+IF|\s+LOOP)?\b', tokens.Keyword), (r'NOT NULL\b', tokens.Keyword), (r'CREATE(\s+OR\s+REPLACE)?\b', tokens.Keyword.DDL), + (r'DOUBLE\s+PRECISION\b', tokens.Name.Builtin), (r'(?<=\.)[^\W\d_]\w*', tokens.Name), (r'[^\W\d_]\w*', is_keyword), (r'[;:()\[\],\.]', tokens.Punctuation), -- cgit v1.2.1