Every python string which appears as the first token on a line is highlighted as comment. In the example below strings which appear as strings are designated OK, and the erroneous strings 'Bad' appear as comment while it should also appear as string. x = { 'key_OK': 'value_OK', 'key_Bad': 'value_OK', } y = ('value_OK', 'value_Bad', 'value_OK' ) Single or double or triple quotes don't affect the behaviour. This is an apparent duplicate of 313007 (and others), but that was marked as FIXED and reappeared, so I filed a new bug. Reproducible: Always Steps to Reproduce: 1. Create a file with Python syntax 2. enter a 'string' or "string" or """string""" 3. See the entered text highlighted as comment instead of as string Actual Results: the entered text is highlighted as comment Expected Results: the entered text highlighted as string This is an apparent duplicate of 313007 (and others), but that was marked as FIXED and reappeared, so I filed a new bug.
I see the exact same behavior on Arch Lnux with Kate 3.10.5 and KDE 4.10.5
I've experienced the same on both Ubuntu 12.10 and Kubuntu 13.04
Git commit b52ae19dc53016ac17a513033e8f52da95e44045 by Gerald Senarclens de Grancy. Committed on 12/05/2014 at 20:30. Pushed by geralds into branch 'master'. Added automated TC for bugs 313007 and 320813 both tests pass as this was fixed a while ago A +5 -0 tests/data/syntax_highlighting/python/string_1/expected A +16 -0 tests/data/syntax_highlighting/python/string_1/input.js A +4 -0 tests/data/syntax_highlighting/python/string_1/origin http://commits.kde.org/kate/b52ae19dc53016ac17a513033e8f52da95e44045
*** This bug has been marked as a duplicate of bug 313007 ***