unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#6853: 24.0.50; python mode coloring broke
@ 2010-08-13 23:05 Thomas Riccardi
  2012-06-18 23:06 ` Glenn Morris
  2012-09-24 18:44 ` bug#6853: python font-lock and empty triple-quoted strings Fabián Ezequiel Gallina
  0 siblings, 2 replies; 5+ messages in thread
From: Thomas Riccardi @ 2010-08-13 23:05 UTC (permalink / raw)
  To: 6853

[-- Attachment #1: Type: text/plain, Size: 358 bytes --]

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.


[-- Attachment #2: test.py --]
[-- Type: text/x-python, Size: 1027 bytes --]


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() == '<TD width="100" align="center" height="40">':
		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"



				

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2012-09-24 18:44 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-08-13 23:05 bug#6853: 24.0.50; python mode coloring broke Thomas Riccardi
2012-06-18 23:06 ` Glenn Morris
2012-06-23 21:58   ` Thomas Riccardi
2012-06-24 23:39     ` Glenn Morris
2012-09-24 18:44 ` bug#6853: python font-lock and empty triple-quoted strings Fabián Ezequiel Gallina

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).