]> code.delx.au - gnu-emacs-elpa/commitdiff
Update README
authorDmitry Gutov <dgutov@yandex.ru>
Sun, 13 Feb 2011 00:11:01 +0000 (03:11 +0300)
committerDmitry Gutov <dgutov@yandex.ru>
Sun, 13 Feb 2011 00:18:26 +0000 (03:18 +0300)
README.md

index 780a1e694c2f895a32f080a7f2a550d82c83358d..4fb31d967a7a11028031ccde6be9aabfe6c7fa2b 100644 (file)
--- a/README.md
+++ b/README.md
@@ -117,6 +117,32 @@ Proper position for functions in nested object literals:
         },
     }
 
+Imenu support for nested named functions
+----------------------------------------
+
+Supports one level of nesting:
+
+    function foo() {
+        function bar() { // shown as foo.bar
+            function baz() {} // hidden
+        }
+    }
+
+Top-level function can be anonymous wrapper:
+
+    (function() {
+        var foo = function() {}; // shown as foo
+    })();
+
+Examples of output:
+
+* [Underscore.js](https://github.com/documentcloud/underscore/blob/master/underscore.js)
+-> <https://gist.github.com/824262>
+* [Backbone.js](https://github.com/documentcloud/backbone/blob/master/backbone.js)
+-> <https://gist.github.com/824260>
+
+No support for library-specific extension methods, though, like _.extend.
+
 Bugs
 ====