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

Indentation loss when nesting S-expressions #66

Open
toddjonker opened this issue Jun 10, 2024 · 0 comments
Open

Indentation loss when nesting S-expressions #66

toddjonker opened this issue Jun 10, 2024 · 0 comments
Labels

Comments

@toddjonker
Copy link
Contributor

When an S-expression is started inside another, indentation can be lost. This makes it quite laborious to edit Ion-based code.

Repro case:

Start a fresh Ion file; I used an IDEA scratch file.

Type (foo and you'll get an automatic closing paren following the cursor.

Hit return; the cursor is at the left margin. I argue this is incorrect and the standard indentation should be applied.

Type two spaces and then bar; you should have:

(foo
  bar)

Move the cursor up after foo and hit RETURN. Surprisingly, this gets the indentation correct.

Type ( and watch the parens get shifted to the first column.

Manually fix the indentation, and imagine doing that a hundred times a day, with much deeper indentation.

@toddjonker toddjonker added the bug label Jun 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant