You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Tried the other applicable steps from the Troubleshooting Guide
Completed the Problem Description, Steps to Reproduce and Version sections below
Problem Description
"match" and "case" are highlighted even as part of variable names. This issue is a continuation or reopening of #21239. The only change is that the incorrect highlighting has additional conditions. The thing to reproduce that I have found, there could be more conditions, is that there must be a colon, ":", in the line with "match" or "case".
What steps reproduce the problem?
open Spyder in dark mode (I did not check light mode)
open new .py file
type a word with "match" in it and then follow it with a colon, ":".
re_match = "asdf" # Not highlighted
if re_match == "asdf": # Highlighted
pass
What is the expected output? What do you see instead?
Expected output is no highlighting of "match". I see highlighting of "match".
ccordoba12
changed the title
Incorrect syntax highlighting of the words "match" and "case" outside of match/case structures 2
Other incorrect syntax highlighting of the words "match" and "case" outside of match/case structures
Jul 31, 2024
Issue Report Checklist
conda update spyder
(orpip
, if not using Anaconda)jupyter qtconsole
(if console-related)spyder --reset
Problem Description
"match" and "case" are highlighted even as part of variable names. This issue is a continuation or reopening of #21239. The only change is that the incorrect highlighting has additional conditions. The thing to reproduce that I have found, there could be more conditions, is that there must be a colon, ":", in the line with "match" or "case".
What steps reproduce the problem?
What is the expected output? What do you see instead?
Expected output is no highlighting of "match". I see highlighting of "match".
Versions
Dependencies
The text was updated successfully, but these errors were encountered: