From 4a0569c3556a95c50db2b5ceed06d3747117fb8f Mon Sep 17 00:00:00 2001 From: Erik Osheim Date: Wed, 9 Dec 2009 18:17:23 -0500 Subject: [PATCH] added some plpgsql stuff --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 775d329..f7491dc 100644 --- a/mode/sql.py +++ b/mode/sql.py @@ -47,7 +47,7 @@ sql_rules = [ NocasePatternRule(r'attribute', r'(?:check|exists|unique|not null|default|primary key|minvalue|foreign key|references)(?![A-Za-z0-9_])'), NocasePatternRule(r'keyword', r'for update'), NocasePatternRule(r'sql_keyword', r'(?:while|for|if|loop|end loop|end if|case|when|then|else|not in|not|and|or|is not|is|in|between|overlaps|like|ilike|similar)(?![A-Za-z0-9_])'), - NocasePatternRule(r'keyword', r'(?:alias for|set|return|declare|end|begin|commit|create database|create index|create sequence|create table|create trigger|create view|select into|select|insert into|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'keyword', r'(?:alias for|set|return|declare|end|begin|commit|create database|create index|create sequence|create table|create trigger|create view|select into|select|insert into|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|lock table|group by|having)(?![A-Za-z0-9_])'), NocasePatternRule(r'builtin', 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_])'),