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

Support the letters q and Q. #145

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions fortran_tests/after/quadruple.f90
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
program test_quadruple_precision
implicit none
real(16) :: r
complex*32 :: cmp

r = 1.0q+00
cmp = (1.0Q+00, 2.0Q-01)

end program test_quadruple_precision
9 changes: 9 additions & 0 deletions fortran_tests/before/quadruple.f90
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
program test_quadruple_precision
implicit none
real(16) :: r
complex*32 :: cmp

r = 1.0q+00
cmp= ( 1.0Q+00,2.0Q-01)

end program test_quadruple_precision
1 change: 1 addition & 0 deletions fortran_tests/test_results/expected_results
Original file line number Diff line number Diff line change
Expand Up @@ -2265,3 +2265,4 @@ cp2k/src/xas_tdp_types.F : 728f382598e79fa0e7b3be6d88a3218fea45e19744bbe7bdaaa96
cp2k/src/xas_tdp_utils.F : 002dfdc6e9d5979516458b6f890950bd94df49e947633a7253b46be5f3fd7d61
cp2k/src/xc/xc_sr_lda.F : 094099ac92a6749028c004d37b7646e2af7de402ee5804de27192b56588cc7fe
cp2k/src/xtb_ehess.F : 45fe2c022760195affb0fd5155d865b6deac896cf6e6714e772bef04afad4be2
quadruple.f90 : a66ec6d7d8041d903a0bef18fc13caa9a50eacb1712fe614752920c144249ed7
2 changes: 1 addition & 1 deletion fprettify/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ class plusminus_parser(parser_re):
"""
def __init__(self, regex):
self._re = regex
self._re_excl = re.compile(r"\b(\d+\.?\d*|\d*\.?\d+)[de]" + EOL_STR, RE_FLAGS)
self._re_excl = re.compile(r"\b(\d+\.?\d*|\d*\.?\d+)[deq]" + EOL_STR, RE_FLAGS)

def split(self, line):
partsplit = self._re.split(line)
Expand Down