Skip to content

Monkey-patching atom.io's indentation logic to make it, well, logical

License

Notifications You must be signed in to change notification settings

yufanyufan/atom-sane-indentation

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sane-indentation package

This package monkey-patches the indentation logic in atom in an attempt to come up with something more, uhm, sane. The main difference betweenthe logic in this package and in the language-mode package (where the identation logic resides in atom) is that this package does a strict count of opening and closing scopes and uses the tokenizer to identify whether scope delimiters appear in a string or comment (in which case they are ignored -- which seems sane). Hence the resulting indentation will never get out of wack, meaning that the identation does not grow arbitrarily for longer files -- something that sometimes happens with the existing logic.

This package is transitional. Once we can come to an agreement on how to move forward with this in atom/atom this package will go away.

About

Monkey-patching atom.io's indentation logic to make it, well, logical

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • CoffeeScript 49.3%
  • JavaScript 48.7%
  • CSS 2.0%