Skip to content

Tokenize trailing whitespace properly. Fixes #97 #99

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 3 commits into from
Aug 25, 2014

Conversation

mattdeboard
Copy link
Contributor

Trailing whitespace should not impact indentation of subsequent lines. This change makes it so that elixir-smie-forward-token emits ; for a line ending with a regex like [[:space:]]+ the same as if there were no trailing whitespace.

Trailing whitespace should not interfere with normal indentation algorithm.
Lines ending like `\s+$` should not impact indentation of subsequent
lines. Instead, the trailing whitespace should be tokenized as if it
didn't exist.
mattdeboard added a commit that referenced this pull request Aug 25, 2014
Tokenize trailing whitespace properly. Fixes #97
@mattdeboard mattdeboard merged commit 23a75c4 into master Aug 25, 2014
@mattdeboard mattdeboard deleted the tokenize-whitespace-eol branch August 25, 2014 22:47
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.

1 participant