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

fixed fortran literal regex pattern #1442

Merged
merged 1 commit into from May 27, 2020
Merged

Conversation

amanotk
Copy link
Contributor

@amanotk amanotk commented May 5, 2020

This fix let the fortran lexer properly handle literal expressions with kind parameters specified as follows:

  integer :: n = 128_4
  real(8) :: pi = 3.14_8

I believe this is part of the fortran standard.

@birkenfeld
Copy link
Member

Looks good, thanks!

@birkenfeld birkenfeld merged commit bbcbb7d into pygments:master May 27, 2020
@Anteru Anteru self-assigned this May 27, 2020
@Anteru Anteru added the changelog-update Items which need to get mentioned in the changelog label May 27, 2020
@Anteru Anteru added this to the 2.7 milestone May 27, 2020
@Anteru Anteru removed the changelog-update Items which need to get mentioned in the changelog label Jun 1, 2020
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.

None yet

3 participants