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

[Python] Improve colorings and fix bugs #412

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

davidhcefx
Copy link
Contributor

@davidhcefx davidhcefx commented Apr 13, 2023

Description

  • Improve colorings based on iPython (colors=Linux):
    • Green for exceptions and function names.
    • Red for keywords such as from and not.
    • Cyan for keywords such as for and if.
  • Fix empty strings not correctly highlighted.
  • Fix block comments not correctly highlighted when nothing follows ===.
  • Fix that TODO should be matched as a whole word.

Screenshot

  • Before

before

  • After

after

- Improve colorings based on iPython (colors=Linux):
    - Green for exceptions and function names.
    - Red for keywords such as `from` and `not`.
    - Cyan for keywords such as `for` and `if`.
- Fix empty strings not correctly highlighted.
- Fix block comments not correctly highlighted when nothing follows `===`.
- Add support for "TODO".
davidhcefx added a commit to davidhcefx/nanorc that referenced this pull request Feb 3, 2024
- Improve colorings based on iPython (colors=Linux):
    - Green for exceptions and function names.
    - Red for keywords such as `from` and `not`.
    - Cyan for keywords such as `for` and `if`.
- Fix empty strings not correctly highlighted.
- Fix block comments not correctly highlighted when nothing follows `===`.
- Add support for "TODO".

Originally proposed in scopatz#412
JoonasOnatsu added a commit to JoonasOnatsu/nanorc-syntax-highlighting that referenced this pull request Apr 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant