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 lexers: builtins, literals, operators #940

Merged
merged 10 commits into from
Aug 7, 2018

Conversation

aldanor
Copy link
Contributor

@aldanor aldanor commented Jun 16, 2018

Fixes #935; fixes #936; fixes #938; fixes #939; fixes #941:

  • add ascii, format and memoryview function builtins
  • add a bunch of missing exception builtins
  • add nonlocal keyword
  • fix float lexer, add support for complex number literals
  • add support for binary and octal numeric integer literals
  • add support for capital letters in binary/octal/hex integer literals
  • add support for underscores in numeric literals (PEP 515)
  • dot followed by a numeric literal is not tagged as an operator
  • support @ and @= operators (PEP 465)
  • add //, ** and all variants of .= operators (like +=)

// Funnily enough, GitHub's lexer also fails at some of these (like 0_1.).

@aldanor aldanor changed the title Python: add missing builtins, make literal lexers PEP515-compliant Python lexers: builtins, literals, operators Jun 16, 2018
@aldanor
Copy link
Contributor Author

aldanor commented Jul 26, 2018

@dblessing Any thoughts on this?.. Please let me know if there's anything else to be done here?

@dblessing
Copy link
Collaborator

Very nice @aldanor Thanks a lot.

@dblessing dblessing merged commit f7e6232 into rouge-ruby:master Aug 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants