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

correct indentation after oneline def/if definition #202

Merged
merged 1 commit into from
May 26, 2015

Conversation

tonini
Copy link
Contributor

@tonini tonini commented May 26, 2015

Example of behavior before

def a, do: :b
  * # cursor should be at the same level as the line above since the line above is a complete and finished expression

Example of behavior after fix

def a, do: :b
* # cursor should be at the same level as the line above since the line above is a complete and finished expression

@tonini tonini force-pushed the correct-indention-after-online-line-def-if branch from 4610aaf to 171ee32 Compare May 26, 2015 06:17
tonini added a commit that referenced this pull request May 26, 2015
…ne-line-def-if

correct indentation after oneline def/if definition
@tonini tonini merged commit c3d3cf1 into master May 26, 2015
@tonini tonini deleted the correct-indention-after-online-line-def-if branch May 26, 2015 08:48
@whatyouhide
Copy link

Super awesome! 👍

@@ -150,6 +150,9 @@
(defvar elixir-smie--block-operator-regexp
(rx "->" (0+ nonl)))

(defvar elixir-smie--online-def-operator-regexp
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be oneline not online :)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh dang! :) let me fix that.

J3RN pushed a commit to J3RN/emacs-elixir that referenced this pull request Apr 24, 2021
* update elixir_sense

* do not append : after struct field or map key in call syntax

* tests added

* according to LSP spec MarkupContent value should not be null

* add readme section about completions

* Apply suggestions from code review

Co-Authored-By: Jason Axelson <axelson@users.noreply.github.com>

* bump elixir_sense to resolve crash with non struct modules

Co-authored-by: Jason Axelson <axelson@users.noreply.github.com>
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.

3 participants