fixes to C mode and other bug fix

--HG--
branch : pmacs2
This commit is contained in:
moculus 2008-06-02 01:38:25 +00:00
parent 7fc0d762d7
commit fe7a462326
2 changed files with 5 additions and 7 deletions

View File

@ -152,12 +152,10 @@ class Buffer(object):
if w in self.windows:
self.windows.remove(w)
modename = w.mode.name()
found = False
if modename in self.highlights:
for w2 in self.windows:
if w2.mode.name() == modename:
found = True
break
if not found:
return
del self.highlights[modename]
def _region_add(self, p1, p2, lines, act):
move = DelMove(self, p1, p2)

View File

@ -205,7 +205,7 @@ class CMake(method.shell.Exec):
class C(mode.Fundamental):
modename = 'C'
extensions = ['.c']
extensions = ['.c', '.h', '.cpp']
tabbercls = CTabber
grammar = CGrammar
opentokens = ('delimiter',)