After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 345647 - Python: Incorrect syntax highlighting after multiline single quote string containing newline
Python: Incorrect syntax highlighting after multiline single quote string con...
Status: RESOLVED DUPLICATE of bug 139267
Product: gtksourceview
Classification: Platform
Component: Syntax files
1.6.x
Other All
: High critical
: ---
Assigned To: GTK Sourceview maintainers
GTK Sourceview maintainers
Depends on:
Blocks:
 
 
Reported: 2006-06-22 12:53 UTC by Nick Murtagh
Modified: 2006-06-22 12:57 UTC
See Also:
GNOME target: ---
GNOME version: 2.13/2.14



Description Nick Murtagh 2006-06-22 12:53:04 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:
Comment 1 Steve Frécinaux 2006-06-22 12:57:38 UTC
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 ***