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

enh(python) support type hints and better type support #2972

Merged
merged 9 commits into from Mar 5, 2021

Conversation

joshgoebel
Copy link
Member

@joshgoebel joshgoebel commented Jan 22, 2021

Resolves #2633.

  • Also lints the Python grammar

Changes

  • Supports type hints in comments
  • Highlight types separately from built-ins

Checklist

  • Added markup tests, or they don't apply here because...
  • Updated the changelog at CHANGES.md
  • Added myself to AUTHORS.txt, under Contributors

@joshgoebel joshgoebel marked this pull request as draft February 18, 2021 11:51
@joshgoebel joshgoebel removed the 0-WIP label Feb 18, 2021
@joshgoebel joshgoebel marked this pull request as ready for review March 3, 2021 21:30
test/markup/python/decorators.expect.txt Outdated Show resolved Hide resolved
src/languages/python.js Outdated Show resolved Hide resolved
Copy link
Member

@allejo allejo left a comment

Choose a reason for hiding this comment

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

minor typos but lgtm

src/languages/python.js Outdated Show resolved Hide resolved
joshgoebel and others added 2 commits March 5, 2021 18:11
@joshgoebel joshgoebel merged commit a5c0f1b into highlightjs:master Mar 5, 2021
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.

(Python) Better support for Python Type Hints
2 participants