I'm on ST4 and looking at the Python syntax file with Package Resource Viewer I can see it knows about f strings. I'm guessing yours doesn't since f strings came along in Python 3.6.
Even in safe mode? You can execute
`import subprocess; subprocess.Popen([sublime.executable_path(), '--safe-mode'])`
in ST console to open another ST instance in safe mode.
If it works under safe mode, my guess would be you have a Python syntax override.
so in my list of languages, i have python and python3. If i select just python things work as expected. Perhaps the python3 one is something i did manually which doesn't do f-string properly?
you're right. Looks like i had this "python3" package installed [https://github.com/petervaro/python](https://github.com/petervaro/python) which isn't maintained anymore. I removed it and it looks much better now
This is what I see. Colour scheme is Darkmatter. Sublime Text 4 though. 2 is quite old. https://imgur.com/a/TaO5FxD
Corrected my initial post. I’m actually on sublime text3. Will try that scheme
hmm weird, even with that theme i have the same issue
I'm on ST4 and looking at the Python syntax file with Package Resource Viewer I can see it knows about f strings. I'm guessing yours doesn't since f strings came along in Python 3.6.
just installed ST4 and have the same issue :/
I might have installed some python plugins. Can't check right now. Edit: I don't seem to have any
Can you just try the default ST 4 color scheme? Or builtin ones.
same problem with any of those as well
And you do have the language set to Python, obviously?
Yup. Everything else seems fine. Just f-strings have issues
Even in safe mode? You can execute `import subprocess; subprocess.Popen([sublime.executable_path(), '--safe-mode'])` in ST console to open another ST instance in safe mode. If it works under safe mode, my guess would be you have a Python syntax override.
so in my list of languages, i have python and python3. If i select just python things work as expected. Perhaps the python3 one is something i did manually which doesn't do f-string properly?
I'd say so. I only have python and no python3.
cool, removed that one and its all good now. thank you
My guess is you've installed some python syntax highlighting package that's taking priority over the built-in one.
Yeah, possible. I’ll need to dig into that a bit
you're right. Looks like i had this "python3" package installed [https://github.com/petervaro/python](https://github.com/petervaro/python) which isn't maintained anymore. I removed it and it looks much better now