Improve ctags callback API
[geany-mirror.git] / tests / ctags / bracematch.js
blob70655ece5c4b0811745810efd44a15ac5d33d706
1 /*
2  * "Braces aren't properly matched in findCmdTerm()"
3  * 
4  * ctags -f - bracematch.js should output:
5  * 
6  * functions:
7  *    Container
8  *    Container.x
9  *    Container.y
10  * 
11  * classes:
12  *    MyClass
13  * 
14  * methods:
15  *    MyClass.insert
16  *    MyClass.wrap
17  */
20 function Container() {
21   function x() {
22     if (!x)
23       x = { };
24   }
26   function y() {
27     
28   }
31 // from prototype.js, a lot simplified to only show the issue
32 MyClass = {
33   insert: function(element, insertions) {
34     element = $(element);
36     if (condition)
37       insertions = {bottom:insertions};
39     var content, insert, tagName, childNodes;
40   },
42   wrap: function(element, wrapper, attributes) {
43     // ...
44   }