FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Prevent autoindenting when a brace appears inside a regex by lnestor · Pull Request #583 · atom/language-javascript · GitHub

This repository was archived by the owner on Dec 15, 2022. It is now read-only.
/ language-javascript Public archive

Prevent autoindenting when a brace appears inside a regex - #583

Open
lnestor wants to merge 1 commit into
atom:masterfrom
lnestor:master
Open

lnestor wants to merge 1 commit into
atom:masterfrom
lnestor:master

Conversation

lnestor commented Jun 27, 2018

Copy link
Copy Markdown

Description of the Change

Currently, the line following a brace inside a regex is automatically indented.

This change makes it so the next line is not indented.

Alternate Designs

The other alternative would be to let the next line be indented if this is the desired functionality. This could be adjusted as a setting, but I don't think it is important enough to warrant its own setting.

Benefits

Aesthetics changes when writing regexes.

Possible Drawbacks

If you put a closing brace on the next line as the first character, it will outdent past the regex.

The normal behavior currently looks like the following.

Applicable Issues

This was referenced in issue atom/atom#17571.

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant


Back | FazBrowse Home | New Git URL