From affd8f13f4fd49086594c5385e9b9f5bfaa3ee7f Mon Sep 17 00:00:00 2001 From: moculus Date: Mon, 4 May 2009 21:42:02 +0000 Subject: [PATCH] --HG-- branch : pmacs2 --- mode/sql.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mode/sql.py b/mode/sql.py index bd0e96d..775d329 100644 --- a/mode/sql.py +++ b/mode/sql.py @@ -25,7 +25,7 @@ end_rules = [ class PlPgSqlGrammar1(Grammar): pass class PlPgSqlGrammar2(Grammar): pass -sql_type_rule = NocasePatternRule(r'sql_type', r'(?:void|row|serial|varchar|float|integer|int|text|timestamptz|timestamp|datetz|date|timetz|time|boolean|bool)(?![A-Za-z0-9_])') +sql_type_rule = NocasePatternRule(r'sql_type', r'(?:void|row|serial|varchar|float|integer|int|text|timestamptz|timestamp|datetz|date|timetz|time|bytea|boolean|bool)(?![A-Za-z0-9_])') class FunctionGrammar(Grammar): rules = base_rules + [ @@ -140,8 +140,8 @@ class SqlTabber(StackTabber): else: unhandled = True - if self.is_rightmost_token(y, i) and unhandled: - self._opt_append('cont', currlvl + w) + #if self.is_rightmost_token(y, i) and unhandled: + # self._opt_append('cont', currlvl + w) return currlvl