Created
March 7, 2015 09:06
-
-
Save Artanis/675f3fb80523a04b6a28 to your computer and use it in GitHub Desktop.
Code formatting example
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
// For https://plus.google.com/+dartlang/posts/Qy6HJPxgTfm | |
// Break after OR operations. | |
// Break before and indent AND operations. | |
// Evaluate groups recursively. | |
if (tag=='style' || | |
tag=='script' | |
&& (type=null || type==TYPE_JS || type==TYPE_DART) || | |
tag=='link' | |
&& (rel=='stylesheet' || rel=='import')) {} | |
// Only problem with doing this (to any long conditional, really) is the dangling code block at the end. :/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment