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

Bad indent of let #47

Closed
jcubic opened this issue May 17, 2020 · 1 comment
Closed

Bad indent of let #47

jcubic opened this issue May 17, 2020 · 1 comment
Labels
bug Something isn't working

Comments

@jcubic
Copy link
Collaborator

jcubic commented May 17, 2020

Example code:

(let* ((nodes (document.querySelectorAll ".terminal .cmd-prompt"))
       (len nodes.length)
       (i 0))
    (while (< i len)
       (let ((div (. nodes i)))
         (print div.innerHTML)
         (++ i))))

renders when pasting as this:

(let* ((nodes (document.querySelectorAll ".terminal .cmd-prompt"))
       (len nodes.length)
       (i 0))
(while (< i len)
       (let ((div (. nodes i)))
         (print div.innerHTML)
         (++ i))))

it don't indent code inside let properly.

@jcubic jcubic added the bug Something isn't working label May 17, 2020
jcubic added a commit that referenced this issue May 18, 2020
@jcubic
Copy link
Collaborator Author

jcubic commented May 18, 2020

The problem was balanced function that was not handling tokens as object, it assume they were strings.

@jcubic jcubic closed this as completed May 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant