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

(ON HOLD) [Feature request] Replace "else if" with "elif" #2

Open
knocte opened this issue Mar 9, 2022 · 3 comments
Open

(ON HOLD) [Feature request] Replace "else if" with "elif" #2

knocte opened this issue Mar 9, 2022 · 3 comments

Comments

@knocte
Copy link
Member

knocte commented Mar 9, 2022

Test1:

if foo then
    ()
else if bar then
    ()

should become:

if foo then
    ()
elif bar then
    ()

Test2:

if foo then
    ()
else
    if bar then
        ()
    else
        ()

should become (same):

if foo then
    ()
else
    if bar then
        ()
    else
        ()

(should not change)

@janus
Copy link

janus commented Mar 29, 2022

The below is what is currently obtainable. So, there is need to remove the extra new line.

if foo then ()
else if bar then ()

@knocte
Copy link
Member Author

knocte commented Mar 29, 2022

The below is what is currently obtainable. So, there is need to remove the extra new line.

No. I forgot to say that we use this config for fantomless:

https://github.com/nblockchain/NOnion/blob/master/.editorconfig

With that config, what you say would not happen.

@janus
Copy link

janus commented Mar 31, 2022

The below is what is currently obtainable. So, there is need to remove the extra new line.

No. I forgot to say that we use this config for fantomless:

https://github.com/nblockchain/NOnion/blob/master/.editorconfig

With that config, what you say would not happen.

How do I enable such in this specific case?

@knocte knocte changed the title [Feature request] Replace "else if" with "elif" (ON HOLD) [Feature request] Replace "else if" with "elif" Mar 9, 2023
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

No branches or pull requests

2 participants