parent
cb663fa934
commit
b449ecb7ae
|
@ -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 = [
|
||||
|
|
|
@ -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):
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue