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

WIP: dedent next line for some keywords - #140

Closed
kbrose wants to merge 3 commits into
atom:masterfrom
kbrose:dedentation
Closed

kbrose wants to merge 3 commits into
atom:masterfrom
kbrose:dedentation

Conversation

@kbrose

@kbrose kbrose commented Mar 27, 2016

Copy link
Copy Markdown
Contributor

This will automatically dedent the next line for a given set of key words.

I would like someone else to look over this list and (a) make sure I'm not missing anything that should be here, and (b) make sure there aren't cases where the line after these key words should not dedent.

Current list:

  • return - Returns control from the current location to the calling location, the next line will necessarily be at least one scope out.
  • yield - Behaves the same as return
  • continue - Control skips back to the declaration of the loop.
  • break - Control skips out of the scope of the nearest loop.
  • raise - Raises an error, control skips either to an except block if enclosed in a try, or the program throws an exception, then quits.

@kbrose

kbrose commented Jul 7, 2017

Copy link
Copy Markdown
Contributor Author

Closing in favor of #204

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants