some small improvements

--HG--
branch : pmacs2
This commit is contained in:
moculus 2007-07-14 20:11:09 +00:00
parent cb663fa934
commit b449ecb7ae
3 changed files with 5 additions and 4 deletions

View File

@ -1,7 +1,7 @@
import color, mode2 import color, mode2
from point2 import Point from point2 import Point
from lex2 import Grammar, ConstantRule, PatternRule, RegionRule, DualRegionRule from lex2 import Grammar, PatternRule, RegionRule, DualRegionRule
class MetadataGrammar(Grammar): class MetadataGrammar(Grammar):
rules = [ rules = [

View File

@ -1,7 +1,7 @@
import re, sets, string, sys import re, sets, string, sys
import color, commands, default, method, mode2, regex, tab2 import color, commands, default, method, mode2, regex, tab2
from point2 import Point from point2 import Point
from lex2 import Grammar, ConstantRule, PatternRule, ContextPatternRule, \ from lex2 import Grammar, PatternRule, ContextPatternRule, \
RegionRule, DualRegionRule RegionRule, DualRegionRule
class Life(mode2.Fundamental): class Life(mode2.Fundamental):

View File

@ -2,7 +2,7 @@ import commands, os.path, sets, string
import color, completer, default, mode2, method, regex, tab2 import color, completer, default, mode2, method, regex, tab2
import ctag_python import ctag_python
from point2 import Point from point2 import Point
from lex2 import Grammar, PatternRule, RegionRule, ConstantRule from lex2 import Grammar, PatternRule, RegionRule
class StringGrammar(Grammar): class StringGrammar(Grammar):
rules = [ rules = [
@ -38,7 +38,8 @@ class PythonGrammar(Grammar):
] ]
class PythonTabber(tab2.StackTabber): 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') startlevel_names = ('if', 'try', 'class', 'def', 'for', 'while', 'try')
def __init__(self, m): def __init__(self, m):
tab2.StackTabber.__init__(self, m) tab2.StackTabber.__init__(self, m)