The Wayback Machine - https://web.archive.org/web/20221207194807/https://github.com/atom/language-ruby/pull/119
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

Fine tune curly braces block #119

Merged
merged 1 commit into from Nov 13, 2015

Conversation

wdspkr
Copy link
Contributor

@wdspkr wdspkr commented Nov 12, 2015

This snippet allows for two different usages:

  1. We want a block with variable:
    All we have to do is enter a {, tab twice, edit the variable name,
    tab again and write what's inside the block.
  2. We want a block without variable, but with spaces inside the braces:
    So we enter a {, tab once and start to write whats inside the
    block.

Before, the latter usage resulted in the following:
{<space>mycodeinsidetheblock<space><space>}
This commit removes the second space before the closing brace.

This snippet allows for two different usages:

1. We want a block with variable:
   All we have to do is enter a '{', tab twice, edit the variable name,
   tab again and write what's inside the block.

2. We want a block without variable, but with spaces inside the braces:
   So we enter a '{', tab once and start to write whats inside the
   block.

Before, the latter usage resulted in the following:
"{<space>mycodeinsidetheblock<space><space>}"
This commit removes the second space before the closing brace.
kevinsawicki added a commit that referenced this pull request Nov 13, 2015
@kevinsawicki kevinsawicki merged commit 909a58b into atom:master Nov 13, 2015
@kevinsawicki
Copy link
Member

kevinsawicki commented Nov 13, 2015

Thanks for tweaking this 👍

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