-
-
Notifications
You must be signed in to change notification settings - Fork 134
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
[parser] enh: allow whitespace in Format specification #4060
Conversation
Blank characters may precede the initial left parenthesis of the format specification and additional blank characters may appear at any point within the format specification, with no effect on the interpretation of the format specification. e.g.; `(I 1 2)` is same as `(I12)` for format specification and are both valid. Earlier, we used to raise tokenizer error because of no support for it issue was initially raised in lfortran#4040
Surprising that test fails on ubuntu but passes on mac and windows |
The failure is:
|
I think the current failure of CI isn't related to this PR. |
The failure is due to #3985. |
I'll give that a look sometime I think. |
I think it's fine. Not as verbose as before. I can't think right now of any way to simplify, so let's go with this. Let's restore the original test and then we can merge it. |
Blank characters may precede the initial left parenthesis of the format specification and additional blank characters may appear at any point within the format specification, with no effect on the interpretation of the format specification.
e.g.;
(I 1 2)
is same as(I12)
for format specification and are both valid.Earlier, we used to raise tokenizer error because of no support for it
issue was initially raised in #4040