https://bugs.kde.org/show_bug.cgi?id=441540
Bug ID: 441540 Summary: [python3]`yield from` expression not recognised Product: frameworks-syntax-highlighting Version: 5.85.0 Platform: Neon Packages OS: Linux Status: REPORTED Severity: normal Priority: NOR Component: syntax Assignee: kwrite-bugs-n...@kde.org Reporter: geisse...@gmail.com CC: walter.von.entfer...@posteo.net Target Milestone: --- SUMMARY The `yield from` expression got introduced with Python 3.3, but Kate syntax highlighting does not recognise it properly. `from` is marked in the same way as the from expression of imports, altough it should rather be the colour and style of `yield`. Example: ```python3 from concurrent.futures import ThreadPoolExecutor def potentise(base): return base**3 bases = [i for i in range(1, 1000)] def run(): with ThreadPoolExecutor(4) as pool: yield from pool.map(potentise, bases) if __name__ == '__main__': for n in run(): print(n) ``` More extensive information can be found in this article: http://simeonvisser.com/posts/python-3-using-yield-from-in-generators-part-1.html STEPS TO REPRODUCE 1. Copy the above code snippet to Kate 2. Set Programming Language to Python OBSERVED RESULT The from of `yield from` has the same colour and style as the from of the import. EXPECTED RESULT The from of `yield from` should look the same as `yield`. SOFTWARE/OS VERSIONS Operating System: KDE neon 5.22 KDE Plasma Version: 5.22.4 KDE Frameworks Version: 5.85.0 Qt Version: 5.15.3 Kernel Version: 5.11.0-27-generic (64-bit) Graphics Platform: Wayland Other information Not sure whether I chose the right component -- You are receiving this mail because: You are watching all bug changes.