Skip to content

gh-159973: Highlight soft keywords after token.NL / token.DEDENT - #159992

Merged
pablogsal merged 2 commits into
python:mainfrom
johnslavik:gh-159973-soft-keyword-highlighting
Nov 26, 2026
Merged

pablogsal merged 2 commits into
python:mainfrom
johnslavik:gh-159973-soft-keyword-highlighting

Conversation

@johnslavik

@johnslavik johnslavik commented Oct 20, 2026 •

Copy link
Copy Markdown
Member

@NekoAsakura

This comment was marked as resolved.

@johnslavik johnslavik changed the title gh-159973: Highlight soft keywords after token.NL gh-159973: Highlight soft keywords after token.NL / token.DEDENT Oct 21, 2026
@johnslavik

Copy link
Copy Markdown
Member Author

Thank you @NekoAsakura!

@NekoAsakura NekoAsakura left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@github-project-automation github-project-automation Bot moved this from Todo to In Progress in Sprint Oct 21, 2026
@johnslavik

Copy link
Copy Markdown
Member Author

There's still false positives like match() or case =, brewing on those

@NekoAsakura

NekoAsakura commented Oct 22, 2026 •

Copy link
Copy Markdown
Member

I put together the failing patterns I found below, and it might be worth a separate PR to fix them.
pr159992_soft_keyword_bugs

Edit: case = looks fine on my end.

@johnslavik

johnslavik commented Oct 22, 2026 •

Copy link
Copy Markdown
Member Author

case = looks fine on my end. -- sorry, I meant case even outside of match, which you caught above as well. Thank you for working on this!

@pablogsal
pablogsal merged commit 697853c into python:main Nov 26, 2026
66 checks passed
@github-project-automation github-project-automation Bot moved this from In Progress to Done in Sprint Nov 26, 2026
@miss-islington-app

Copy link
Copy Markdown

Thanks @johnslavik for the PR, and @pablogsal for merging it 🌮🎉.. I'm working now to backport this PR to: 3.14, 3.15.
🐍🍒⛏🤖

@miss-islington-app

Copy link
Copy Markdown

Sorry, @johnslavik and @pablogsal, I could not cleanly backport this to 3.15 due to a conflict.

Please backport manually with cherry_picker, see the devguide for more information.

cherry_picker 697853cd250b0e96930516c3a19f84bf406909e2 3.15

@miss-islington-app

Copy link
Copy Markdown

Sorry, @johnslavik and @pablogsal, I could not cleanly backport this to 3.14 due to a conflict.

Please backport manually with cherry_picker, see the devguide for more information.

cherry_picker 697853cd250b0e96930516c3a19f84bf406909e2 3.14

@bedevere-app

bedevere-app Bot commented Nov 26, 2026

Copy link
Copy Markdown

GH-162676 is a backport of this pull request to the 3.15 branch.

@bedevere-app

bedevere-app Bot commented Nov 26, 2026

Copy link
Copy Markdown

GH-162677 is a backport of this pull request to the 3.14 branch.

@bedevere-app bedevere-app Bot removed needs backport to 3.15 bugs and security fixes needs backport to 3.14 bugs and security fixes labels Nov 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants