GNOME Bugzilla – Bug 345647
Python: Incorrect syntax highlighting after multiline single quote string containing newline
Last modified: 2006-06-22 12:57:38 UTC
Please describe the problem: Python code following a multiline double quoted string is highlighted correctly. But code following a multiline single quoted string is not if the string contains a newline. Steps to reproduce: Paste the following into gedit: # Test case A """%s""" % ('blah') # Test case B """%s""" \ % ('blah') # Test case C """%s """ % ('blah') # Test case D '''%s''' \ % ('blah') # Test case E '''%s''' % ('blah') # Test case F '''%s ''' % ('blah') Actual results: Test cases A through E are highlighted correctly. In test case F <<' % ('>> and <<')>> get highlighted as strings. Expected results: In case F <<'blah'>> should be highlighted as a string. Does this happen every time? Yes Other information:
Thanks for the bug report. This particular bug has already been reported into our bug tracking system, but please feel free to report any further bugs you find. *** This bug has been marked as a duplicate of 139267 ***