From 084df1740e49dff13529b3caf693e8967bdc0e78 Mon Sep 17 00:00:00 2001 From: moculus Date: Sat, 4 Oct 2008 14:50:55 +0000 Subject: [PATCH] --HG-- branch : pmacs2 --- mode/c.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/mode/c.py b/mode/c.py index 4eb54ea..9239053 100644 --- a/mode/c.py +++ b/mode/c.py @@ -115,9 +115,8 @@ class CTabber2(tab.StackTabber2): def _is_indent(self, t): return t.name == 'spaces' def _is_ignored(self, t): - if t.name in ('spaces', 'eol', 'comment'): return True - elif t.fqname() in ('comment.start', 'comment.data', 'comment.null', 'comment.end'): return True - else: return False + return t.fqname() in ('spaces', 'eol', 'comment', 'comment.start', + 'comment.data', 'comment.null', 'comment.end') class CCheckSyntax(method.shell.Exec): '''Build this C program (using the mode's make cmd)'''