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

wrong block groupings #18

Open
fabiommendes opened this issue Apr 8, 2016 · 0 comments
Open

wrong block groupings #18

fabiommendes opened this issue Apr 8, 2016 · 0 comments

Comments

@fabiommendes
Copy link

Jiphy does not group code blocks correctly when going from python to js. The newline to close a block seems silly to me:

if x:
    line_of_code()
    this_is_in_the_same_js_block()

    this_is_not()
i_am_scoped_with_the_previous_line()

You might preserve the same lines in js by closing the block in its last line

if (x){
    line_of_code();
    this_is_in_the_same_js_block();

    this_is_not();}
i_am_scoped_with_the_previous_line();

Python tokenizer takes care of indents, show it should not be so difficult to break the blocks like this

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

1 participant