parent
de564a4077
commit
05d0f86c93
|
@ -82,6 +82,8 @@ class CTabber2(tab.StackTabber2):
|
|||
nocontinue_tokens = {'delimiter': {';': 1}}
|
||||
start_free_tokens = {'string.start': 'string.end'}
|
||||
end_free_tokens = {'string.end': 'string.start'}
|
||||
start_macro_tokens = {'macro.start': 'macro.end'}
|
||||
end_macro_tokens = {'macro.end': 'macro.start'}
|
||||
def is_base(self, y):
|
||||
if y == 0:
|
||||
return True
|
||||
|
@ -89,8 +91,8 @@ class CTabber2(tab.StackTabber2):
|
|||
|
||||
# this assumes that people aren't gonna use these macros inside of
|
||||
# blocks, which is probably ok.
|
||||
t0 = tokens[0]
|
||||
if t0.fqname() == 'macro.start' and t0.string in ('#define', '#include'):
|
||||
t = tokens[0]
|
||||
if t.fqname() == 'macro.start' and t.string in ('#define', '#include'):
|
||||
return True
|
||||
|
||||
# detecting function declarations is annoying; this assumes that people
|
||||
|
@ -110,7 +112,6 @@ class CTabber2(tab.StackTabber2):
|
|||
decl = False
|
||||
break
|
||||
return decl
|
||||
|
||||
def _is_indent(self, t):
|
||||
return t.name == 'spaces'
|
||||
def _is_ignored(self, t):
|
||||
|
|
Loading…
Reference in New Issue