python3.lang: fix match/case highlight
match
and case
aren't normal Python keywords but "soft-keywords", i.e. they only act as keywords in certain contexts.
The current rules will highlight "match" in expressions like re.match()
, which is incorrect.
Use an improved regex for better detection, inspired by Python IDLE's colorizer.