From 7e59ce6d55874cbf74c98776ee5057dfcb893feb Mon Sep 17 00:00:00 2001 From: moculus Date: Tue, 24 Feb 2009 23:43:40 +0000 Subject: [PATCH] --HG-- branch : pmacs2 --- mode/sql.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mode/sql.py b/mode/sql.py index 062f4e3..0eaa84c 100644 --- a/mode/sql.py +++ b/mode/sql.py @@ -43,7 +43,7 @@ function_rules = [ sql_rules = [ NocasePatternRule(r'attribute', r'(?:check|exists|unique|not null|default|primary key|minvalue|foreign key|references)(?![A-Za-z0-9_])'), NocasePatternRule(r'sql_operator', r'(?:case|when|then|else|end|not in|not|and|or|is not|is|in|between|overlaps|like|ilike|similar)(?![A-Za-z0-9_])'), - NocasePatternRule(r'sql_keyword', r'(?:create database|create index|create sequence|create table|create trigger|create view|select|insert|update|delete|drop database|drop index|drop sequence|drop table|drop trigger|drop view|create user|alter user|drop user|drop function|grant|revoke|create function|create or replace function|create or replace view|create language|create operator|create type)(?![A-Za-z0-9_])'), + NocasePatternRule(r'sql_keyword', r'(?:begin|commit|create database|create index|create sequence|create table|create trigger|create view|select|insert|update|delete|drop database|drop index|drop sequence|drop table|drop trigger|drop view|create user|alter user|drop user|drop function|grant|revoke|create function|create or replace function|create or replace view|create language|create operator|create type)(?![A-Za-z0-9_])'), NocasePatternRule(r'pseudokeyword', r'(?:returns|language|right join|left join|inner join|outer join|join|where|unknown|null|true|false|into|values|as|from|order by|asc|desc|limit|distinct|cascade|using|on)(?![A-Za-z0-9_])'), sql_type_rule, PatternRule(r'sql_builtin', r'(?:nextval|current_timestamp|current_time|current_date)(?![A-Za-z0-9_])'),