Bug 448222

Summary: An Spanish tilde confuses variable detection
Product: [Developer tools] kdev-python Reporter: Jaime Torres <jtamate>
Component: Language supportAssignee: Sven Brauch <mail>
Status: RESOLVED DUPLICATE    
Severity: normal CC: igorkuo
Priority: NOR    
Version: 5.7.211201   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Jaime Torres 2022-01-10 16:48:12 UTC
SUMMARY
In this example python file, kdevelop assigns the green colour to nombre_apellido, except in the second and third print, after the text with ú, where only ombre_apellido is green, and the first n is black. It is coloured as expected when removing the ú and it increases the number of black letters with the number of ú in the text.

# -*- coding: utf-8 -*-

nombre_apellido = "nombre y apellido"
print("normal", nombre_apellido)
print("en minúsculas:", nombre_apellido.tolower())
print("en mayúsculas:", nombre_apellido.toupper())
print("normal", nombre_apellido)


EXPECTED RESULT
All nombre_apellido are completely green (or the corresponding colour) even in 
print("en mayúúúúúúúsculas:", nombre_apellido.toupper())

SOFTWARE/OS VERSIONS
Versión 5.7.211200 (21.12.0)
KDE Frameworks :Versión 5.89.0
Qt: Versión 5.15.2 (compilado con 5.15.2)
Comment 1 Igor Kushnir 2022-01-11 09:11:17 UTC

*** This bug has been marked as a duplicate of bug 274430 ***