Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Prevent autoindenting when a brace appears inside a regex #583

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Prevent autoindenting when a brace appears inside a regex #583

wants to merge 1 commit into from

Conversation

lnestor
Copy link

@lnestor lnestor commented Jun 27, 2018

Description of the Change

Currently, the line following a brace inside a regex is automatically indented.
image
This change makes it so the next line is not indented.
image

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.
image
The normal behavior currently looks like the following.
image

Applicable Issues

This was referenced in issue atom/atom#17571.

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.

None yet

1 participant