b8b05992bc98031235ac4872a64c99c17f2b4bde
[platform/framework/web/crosswalk-tizen.git] /
1 // line comment, no indent
2
3 /*
4  * block comment, no indent
5  */
6 if (true) {
7   // line comment, 1 indent
8   /**
9    * block comment, 1 indent
10    */
11   if (true) {
12     // line comment, 2 indents
13     /*
14      * block comment, 2 indent
15      */
16     if (true) {
17       /* block single line, 3 indents */
18       /*
19         BLOCK ASCII
20           |___________
21                       |___
22                           `----> YEAH
23       */
24       bar();
25     }
26   }
27 }
28
29 /* block single line, no indent */
30
31
32
33 // test PR #57
34 var obj = { /* test trailing space after multi line comment */
35   then: function( /* fnDone, fnFail, fnProgress */ ) {
36     var fns = arguments; // test space before comment
37   }
38 };
39
40 function foo() { // single line after token that requires line break
41   if (false) { /* multi line after token that requires line break */
42     bar();
43   }
44 }
45
46
47 // issue #139
48 var pfun = new PFunction(function(hello /*, foo )
49         ,bar { */ , world) {});