From b449ecb7aeae874f5f2c20bba2ef14e05f5a4ced Mon Sep 17 00:00:00 2001 From: moculus Date: Sat, 14 Jul 2007 20:11:09 +0000 Subject: [PATCH] some small improvements --HG-- branch : pmacs2 --- mode_blame.py | 2 +- mode_life.py | 2 +- mode_python.py | 5 +++-- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/mode_blame.py b/mode_blame.py index 9114acf..64b3bbb 100644 --- a/mode_blame.py +++ b/mode_blame.py @@ -1,7 +1,7 @@ import color, mode2 from point2 import Point -from lex2 import Grammar, ConstantRule, PatternRule, RegionRule, DualRegionRule +from lex2 import Grammar, PatternRule, RegionRule, DualRegionRule class MetadataGrammar(Grammar): rules = [ diff --git a/mode_life.py b/mode_life.py index e869663..5079b0a 100644 --- a/mode_life.py +++ b/mode_life.py @@ -1,7 +1,7 @@ import re, sets, string, sys import color, commands, default, method, mode2, regex, tab2 from point2 import Point -from lex2 import Grammar, ConstantRule, PatternRule, ContextPatternRule, \ +from lex2 import Grammar, PatternRule, ContextPatternRule, \ RegionRule, DualRegionRule class Life(mode2.Fundamental): diff --git a/mode_python.py b/mode_python.py index 3632614..6c80ba9 100644 --- a/mode_python.py +++ b/mode_python.py @@ -2,7 +2,7 @@ import commands, os.path, sets, string import color, completer, default, mode2, method, regex, tab2 import ctag_python from point2 import Point -from lex2 import Grammar, PatternRule, RegionRule, ConstantRule +from lex2 import Grammar, PatternRule, RegionRule class StringGrammar(Grammar): rules = [ @@ -38,7 +38,8 @@ class PythonGrammar(Grammar): ] class PythonTabber(tab2.StackTabber): - endlevel_names = ('pass', 'return', 'yield', 'raise', 'break', 'continue') + #endlevel_names = ('pass', 'return', 'yield', 'raise', 'break', 'continue') + endlevel_names = ('pass', 'return', 'raise', 'break', 'continue') startlevel_names = ('if', 'try', 'class', 'def', 'for', 'while', 'try') def __init__(self, m): tab2.StackTabber.__init__(self, m)