From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Thomas Riccardi Newsgroups: gmane.emacs.bugs Subject: bug#6853: 24.0.50; python mode coloring broke Date: Sat, 14 Aug 2010 01:05:48 +0200 Message-ID: <1281740748.5720.76.camel@kiwi-pc2> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-tMOlcM1baEpkm1/SQl7m" X-Trace: dough.gmane.org 1281742730 22956 80.91.229.12 (13 Aug 2010 23:38:50 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 13 Aug 2010 23:38:50 +0000 (UTC) To: 6853@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Aug 14 01:38:48 2010 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Ok3pn-0002x2-GC for geb-bug-gnu-emacs@m.gmane.org; Sat, 14 Aug 2010 01:38:47 +0200 Original-Received: from localhost ([127.0.0.1]:40764 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ok3pm-0006L1-St for geb-bug-gnu-emacs@m.gmane.org; Fri, 13 Aug 2010 19:38:46 -0400 Original-Received: from [140.186.70.92] (port=51374 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ok3pg-0006Ke-SN for bug-gnu-emacs@gnu.org; Fri, 13 Aug 2010 19:38:42 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Ok3pf-0003e2-PP for bug-gnu-emacs@gnu.org; Fri, 13 Aug 2010 19:38:40 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:49546) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Ok3pf-0003dy-Nz for bug-gnu-emacs@gnu.org; Fri, 13 Aug 2010 19:38:39 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1Ok3Yb-00050m-TI; Fri, 13 Aug 2010 19:21:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Thomas Riccardi Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 13 Aug 2010 23:21:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 6853 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.128174163219249 (code B ref -1); Fri, 13 Aug 2010 23:21:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 13 Aug 2010 23:20:31 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Ok3Y7-00050Q-3v for submit@debbugs.gnu.org; Fri, 13 Aug 2010 19:20:31 -0400 Original-Received: from mx10.gnu.org ([199.232.76.166]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Ok3JB-0004u0-3C for submit@debbugs.gnu.org; Fri, 13 Aug 2010 19:05:05 -0400 Original-Received: from lists.gnu.org ([199.232.76.165]:33154) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Ok3K1-0000iI-LO for submit@debbugs.gnu.org; Fri, 13 Aug 2010 19:05:57 -0400 Original-Received: from [140.186.70.92] (port=54838 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ok3K0-0006at-A0 for bug-gnu-emacs@gnu.org; Fri, 13 Aug 2010 19:05:57 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Ok3Jz-0008Hy-2D for bug-gnu-emacs@gnu.org; Fri, 13 Aug 2010 19:05:55 -0400 Original-Received: from mail-ww0-f49.google.com ([74.125.82.49]:44282) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Ok3Jy-0008Hr-UQ for bug-gnu-emacs@gnu.org; Fri, 13 Aug 2010 19:05:55 -0400 Original-Received: by wwi14 with SMTP id 14so2264235wwi.30 for ; Fri, 13 Aug 2010 16:05:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:subject:from:to:content-type :date:message-id:mime-version:x-mailer; bh=Ppdo9419AD+xNjS5PczN5c1w9vQvifJqeySVgPxBeNU=; b=lKK+hC1kJGCj0PZ2/A7becLRcPNkz2o4pZrRRzaF57vkTyqgWYlb7XULoa5qgcLaj8 Y9V2qZ0vm07ls3ZCgOcq9J0ooR0yl7ilCUt1mIoWXkVo0yBoNWe2NZ4pj4RkdHBc+HqI BqtuAxpht/R2yvuhstKpQ2oFu0DEsuEym3INc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:from:to:content-type:date:message-id:mime-version:x-mailer; b=JKTQcRWfQ4ffU2lFVk9Wpm+i+Zcxhc8m/v2TmbryymR+31/iQx2vpFhRxVgIuzbMnU 2JK9NOwhTuc1mHkE6nGq2cBma5GGYL1LKonMOevYmEfv2hfEWY/lUWd0XIRywqkqQWNi 74EuZKMKdDUaE7PO6yYpwx4dLliuYDN993c3c= Original-Received: by 10.227.128.79 with SMTP id j15mr2064205wbs.88.1281740753454; Fri, 13 Aug 2010 16:05:53 -0700 (PDT) Original-Received: from [192.168.0.1] (cvl92-2-82-228-145-47.fbx.proxad.net [82.228.145.47]) by mx.google.com with ESMTPS id r10sm2768904wbe.0.2010.08.13.16.05.50 (version=SSLv3 cipher=RC4-MD5); Fri, 13 Aug 2010 16:05:50 -0700 (PDT) X-Mailer: Evolution 2.30.2 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-Mailman-Approved-At: Fri, 13 Aug 2010 19:20:29 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Fri, 13 Aug 2010 19:21:01 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:39467 Archived-At: --=-tMOlcM1baEpkm1/SQl7m Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit emacs trunk revno: 101071 How to reproduce: 1/ emacs -Q test.py 2/ coloring is wrong starting L96 The test.py file is joint to this email. I tried to remove as many lines as possible: If you remove any line above L25 from the test.py file, the bug disappears... If you add or remove lines below L25, the line where the bug starts will still be L96. --=-tMOlcM1baEpkm1/SQl7m Content-Disposition: attachment; filename="test.py" Content-Type: text/x-python; name="test.py"; charset="UTF-8" Content-Transfer-Encoding: 7bit from core.url_open import URLOpen from core.tesseract import Tesseract CAPTCHACODE = "captchacode" MEGAVAR = "megavar" class CaptchaParser(HTMLParser): """""" def __init__(self, data): """""" HTMLParser.__init__(self) self.located = False self.captcha = None self.captchacode = "" self.megavar = "" self.feed(data) self.close() def handle_starttag(self, tag, attrs): """""" if self.get_starttag_text() == '': elif tag == "img": """""" "test" "test" "test" "test" "test" "test" "test" "test" "test" "test" "test" "test" "test" "test" "test" "test" "test" "test" "test" "test" "test" "test" "test" "test" "test" "test" "test" "test" "test" "test" "test" "test" "test" "test" "test" "test" "test" "test" "test" "test" "test" "test" "test" "test" "test" "test" "test" "test" "test" "test" "test" "test" "test" "test" "test" "test" "test" "test" "test" "test" "test" "test" "test" "test" "test" "test" "test" "test" "test" "test" "test" "test" "test" --=-tMOlcM1baEpkm1/SQl7m--