SlickEdit Community

SlickEdit Product Discussion => SlickEdit® => Topic started by: rowbearto on April 09, 2021, 06:59:18 pm

Title: python f-string color coding problem with escaped braces
Post by: rowbearto on April 09, 2021, 06:59:18 pm
In a Python f-string if you want to print an actual opening curly brace one uses 2 curly braces in a row - {{

But this throws off the color coding in python.

Example attached.
Title: Re: python f-string color coding problem with escaped braces
Post by: Clark on April 09, 2021, 07:59:19 pm
Ah..we missed that. Thanks for posting

Hot fix add for this

Title: Re: python f-string color coding problem with escaped braces
Post by: rowbearto on April 09, 2021, 08:11:44 pm
Thanks. It also happens when using f""" (triple quotes) as well, maybe you have the same code for handling triple quotes as single.
Title: Re: python f-string color coding problem with escaped braces
Post by: Clark on April 09, 2021, 08:21:54 pm
It's the same problem for all the f-string definitions. I fixed them all.