Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add soft keywords to Python keyword list #3277

Merged
merged 1 commit into from
Nov 13, 2022

Conversation

eht16
Copy link
Member

@eht16 eht16 commented Sep 4, 2022

This adds _, case and match to the Python keywords list.

_ seems not very useful but also won't hurt I guess. It will be highlighted as keyword when used in something like message = _('Text to be translated'), while not completely technically correct in this case, it is OK IMO and not worth the efforts to remove this single keyword from the list in the update script.

N.B.: the scripts/update-python-identifiers.sh script now requires Python 3.10 which was released about one year ago and the script is only to be executed by developers.

Closes #3263.

Before:
issue3263_before

After:
issue3263_after

@elextr
Copy link
Member

elextr commented Sep 4, 2022

Looks ok to me, the Python experts seem to be in agreement that this should be done so ok.

Committ message should also mention "... and update to Python 3.10" since it also removed __peg_parser__ and added to identifiers as well as adding match and case.

@eht16 eht16 force-pushed the issue3263_python_keywords_match_case branch from 0ee4e70 to f5f3b7a Compare September 10, 2022 14:44
@eht16
Copy link
Member Author

eht16 commented Sep 10, 2022

Looks ok to me, the Python experts seem to be in agreement that this should be done so ok.

Committ message should also mention "... and update to Python 3.10" since it also removed __peg_parser__ and added to identifiers as well as adding match and case.

Thanks, done.

@eht16
Copy link
Member Author

eht16 commented Oct 23, 2022

If there won't be objections, I'll merge this in a few days.

@eht16 eht16 merged commit b2f6e5b into geany:master Nov 13, 2022
@eht16 eht16 deleted the issue3263_python_keywords_match_case branch November 13, 2022 12:40
@b4n b4n added this to the 1.39/2.0 milestone Apr 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Filedef for Python missing "match" and "case"
3 participants