bracket-colorizer icon indicating copy to clipboard operation
bracket-colorizer copied to clipboard

Issue on Python f strings

Open rafaelnascimento411 opened this issue 4 years ago • 2 comments

Hello.

Great work on the package, it's really helpfull. I think i found a bug, on Python's f strings the matcher does not work, it stays as the default grey. Here's an example:

print(f"Expected: {(total*int(time_per_img))/60} mins")

It's true that i can write the calculation outside the brackets of the f string and it'll work properly, but i think this should be possible.

rafaelnascimento411 avatar Nov 27 '20 17:11 rafaelnascimento411

This package skips strings so it doesn't wrongly match brackets outside of the string with brackets inside the string (e.g. (")"))

Since brackets inside strings don't need to match it would probably be more annoying than helpful.

Although this might be a helpful feature that could be off by default in the settings.

UziTech avatar Nov 27 '20 18:11 UziTech

That is a totally valid explanation. Thanks!

rafaelnascimento411 avatar Nov 27 '20 19:11 rafaelnascimento411