parent
a5511d0c14
commit
97008b1745
19
mode/c.py
19
mode/c.py
|
@ -241,8 +241,8 @@ class CContext(context.Context):
|
||||||
elif t.name == 'delimiter' and t.string == '}':
|
elif t.name == 'delimiter' and t.string == '}':
|
||||||
if not stack:
|
if not stack:
|
||||||
# we are totally hosed. start over. ugh.
|
# we are totally hosed. start over. ugh.
|
||||||
#self.build_name_map()
|
#raise Exception, "we're totally hosed"
|
||||||
raise Exception, "we're totally hosed"
|
self.build_name_map()
|
||||||
return
|
return
|
||||||
stack.pop(-1)
|
stack.pop(-1)
|
||||||
if curr:
|
if curr:
|
||||||
|
@ -306,15 +306,18 @@ class C(mode.Fundamental):
|
||||||
self.add_bindings('close-bracket', (']',))
|
self.add_bindings('close-bracket', (']',))
|
||||||
self.add_bindings('c-check-syntax', ('C-c s',))
|
self.add_bindings('c-check-syntax', ('C-c s',))
|
||||||
self.add_bindings('c-make', ('C-c C-c',))
|
self.add_bindings('c-make', ('C-c C-c',))
|
||||||
self.context = CContext(self)
|
#self.context = CContext(self)
|
||||||
self.functions = None
|
#self.functions = None
|
||||||
self.funclines = None
|
#self.funclines = None
|
||||||
|
|
||||||
def get_functions(self):
|
def get_functions(self):
|
||||||
return self.context.get_names()
|
#return self.context.get_names()
|
||||||
|
return {}
|
||||||
def get_function_names(self):
|
def get_function_names(self):
|
||||||
return self.context.get_name_list()
|
#return self.context.get_name_list()
|
||||||
|
return []
|
||||||
def get_line_function(self, y):
|
def get_line_function(self, y):
|
||||||
return self.context.get_line_name(y)
|
#return self.context.get_line_name(y)
|
||||||
|
return None
|
||||||
|
|
||||||
install = C.install
|
install = C.install
|
||||||
|
|
Loading…
Reference in New Issue