Skip to content

correct indentation inside heredoc strings #222

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

Merged
merged 1 commit into from
Jun 18, 2015

Conversation

tonini
Copy link
Contributor

@tonini tonini commented Jun 18, 2015

Handle indentation inside Elixir heredocs.

Rules:

  1. If the previous line is empty, indent as the basic indentation
    at the beginning of the heredoc.
  2. If the previous line is not empty, indent as the previous line.

fixes #86

/cc @mattdeboard

@tonini tonini force-pushed the correct-indentation-inside-heredoc branch from 90d7be0 to 21e2baf Compare June 18, 2015 12:34
tonini added a commit that referenced this pull request Jun 18, 2015
…eredoc

correct indentation inside heredoc strings
@tonini tonini merged commit 8b09aae into master Jun 18, 2015
@tonini tonini deleted the correct-indentation-inside-heredoc branch June 18, 2015 21:09
J3RN pushed a commit to J3RN/emacs-elixir that referenced this pull request Apr 24, 2021
…ixir-editors#222)

Change from warning to info since it is very much expected on most clients, and
in coc.vim warnings require the user to clear them.

Fixes elixir-editors#217
J3RN pushed a commit to J3RN/emacs-elixir that referenced this pull request Apr 24, 2021
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

Successfully merging this pull request may close these issues.

Indentation with heredocs is less than ideal.
1 participant