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