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

Fix shebang regex in Python lexer #1172

Merged
merged 2 commits into from Jun 17, 2019

Conversation

pyrmont
Copy link
Contributor

@pyrmont pyrmont commented Jun 12, 2019

The Python lexer only supported minor version numbers for shebangs involving python2. Minor versions of Python 3 should also be included. This commit corrects that problem and supports minor version numbers higher than 9. This fixes #945.

The Python lexer only supported minor version numbers for shebangs
involving `python2`. Minor versions of Python 3 should also be included.
This commit corrects that problem and supports minor version numbers
higher than 9. This fixes rouge-ruby#945.
@pyrmont pyrmont added the needs-review The PR needs to be reviewed label Jun 12, 2019
@pyrmont pyrmont merged commit 5fb0ea6 into rouge-ruby:master Jun 17, 2019
@pyrmont pyrmont removed the needs-review The PR needs to be reviewed label Jun 17, 2019
@pyrmont pyrmont deleted the bugfix.python-shebang branch January 8, 2020 20:07
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.

Regex for python shebang is incorrect
1 participant