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 in string literals #2

Open
lucaswerkmeister opened this issue Sep 4, 2015 · 1 comment
Open

Indentation in string literals #2

lucaswerkmeister opened this issue Sep 4, 2015 · 1 comment
Assignees
Milestone

Comments

@lucaswerkmeister
Copy link
Owner

The indentation function should be improved to indent correctly within string literals. What we currently have works for the third line and subsequent lines, but the second line should be aligned to the quotes in the first line.

@lucaswerkmeister lucaswerkmeister self-assigned this Sep 4, 2015
@lucaswerkmeister lucaswerkmeister added this to the 1.0 milestone Sep 4, 2015
@lucaswerkmeister
Copy link
Owner Author

Tricky – given

     foo bar " baz qux

how do I know whether that’s the beginning or the end of a string literal?

A guess “line starts with odd indentation” might be a passable heuristic…

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant