Permalink
Browse files

fix ignore error bug.

  • Loading branch information...
1 parent 3498cf0 commit 4865721802133f2a11ea812624f24e1622feece5 @fbzhong committed Dec 5, 2011
Showing with 6 additions and 3 deletions.
  1. +6 −3 gjslint.py
View
9 gjslint.py
@@ -79,16 +79,19 @@ def append_data(self, proc, data, end=False):
for line in data.split('\n'):
if len(line) == 0:
continue
+ ignored = False
for rule in self.ignore_errors:
- if re.search(rule, line) == None:
- text += line + '\n'
- else:
+ if re.search(rule, line):
+ ignored = True
self.ignored_error_count += 1
if self.debug:
print "text match line "
print "rule = " + rule
print "line = " + line
print "---------"
+ break
+ if ignored == False:
+ text += line + '\n'
self.show_tests_panel()
selection_was_at_end = (len(self.output_view.sel()) == 1 and self.output_view.sel()[0] == sublime.Region(self.output_view.size()))

0 comments on commit 4865721

Please sign in to comment.