branch : pmacs2
This commit is contained in:
moculus 2008-10-04 14:50:55 +00:00
parent cbe91b0a98
commit 084df1740e
1 changed files with 2 additions and 3 deletions

View File

@ -115,9 +115,8 @@ class CTabber2(tab.StackTabber2):
def _is_indent(self, t): def _is_indent(self, t):
return t.name == 'spaces' return t.name == 'spaces'
def _is_ignored(self, t): def _is_ignored(self, t):
if t.name in ('spaces', 'eol', 'comment'): return True return t.fqname() in ('spaces', 'eol', 'comment', 'comment.start',
elif t.fqname() in ('comment.start', 'comment.data', 'comment.null', 'comment.end'): return True 'comment.data', 'comment.null', 'comment.end')
else: return False
class CCheckSyntax(method.shell.Exec): class CCheckSyntax(method.shell.Exec):
'''Build this C program (using the mode's make cmd)''' '''Build this C program (using the mode's make cmd)'''