Sha256: b91669f82734b4004b608a9dbc710458c030bd82f6162f669a6fa05404354d1a

Contents?: true

Size: 1.56 KB

Versions: 56

Compression:

Stored size: 1.56 KB

Contents

//
// Sample Javascript test code
//
if ( x )
    x;
x = { f +  // foo
        q
    go
}
r +
    bar + call( foo +
            bar
        // foo
        then
        bar
    )
ntnth  // TODO: this line should be at col 0

foo = {
    at : the,
    bar : tender
}


r
if (foo)
    // then
    // do something
    bar;
yo;
if (foo)
{
    //
    // then do something
    bar;
}
if (bar)
    /*
     * Comment on something. Comment on something. Comment on something.
     * Comment on something.     Comment on something.
     *
     */
    yo;
foo

{
    line = getline() /* comment after code but spanning multiple lines seems to
                      * work pretty well.
                      */
    foo
}

window.prototype.foo = {
    a : hole,
    dink : wad
}

document.getElementById(
    string);

/*
 * :
 */
if (go()) // do it
    foo;
while (false) /* never do it */
    ;


/***
 *
 * blah
 */


switch (x) {
case 'x':
    window.alert(x);
    break;
default:
    break;
}

foo +
    //and + bar(
    //another
)
r +
    bar + call( foo +
            bar
        // foo
        then
        bar
    )
foo



{
    fuction foo() {
        /* comment */
        foo();
    }
}


/*****************************************************************************
 *
 * Known broken-ness:
 *
 */

if (yo) /*
         * dude
         *
         */
blah // this should be one level in

//

//

if (
    something) /*
                */
    //
    // broken here.  This should be one level back.  But I'll argue (for now) that
    // the previous comment (which causes this) is bad style.
    //


Version data entries

56 entries across 56 versions & 1 rubygems

Version Path
utils-0.0.67 lib/utils/config/vim/plugin/test/IndentAnything/test.js
utils-0.0.66 lib/utils/config/vim/plugin/test/IndentAnything/test.js
utils-0.0.65 lib/utils/config/vim/plugin/test/IndentAnything/test.js
utils-0.0.64 lib/utils/config/vim/plugin/test/IndentAnything/test.js
utils-0.0.63 lib/utils/config/vim/plugin/test/IndentAnything/test.js
utils-0.0.62 lib/utils/config/vim/plugin/test/IndentAnything/test.js
utils-0.0.61 lib/utils/config/vim/plugin/test/IndentAnything/test.js
utils-0.0.60 lib/utils/config/vim/plugin/test/IndentAnything/test.js
utils-0.0.59 lib/utils/config/vim/plugin/test/IndentAnything/test.js
utils-0.0.58 lib/utils/config/vim/plugin/test/IndentAnything/test.js
utils-0.0.57 lib/utils/config/vim/plugin/test/IndentAnything/test.js
utils-0.0.56 lib/utils/config/vim/plugin/test/IndentAnything/test.js
utils-0.0.55 lib/utils/config/vim/plugin/test/IndentAnything/test.js
utils-0.0.54 lib/utils/config/vim/plugin/test/IndentAnything/test.js
utils-0.0.53 lib/utils/config/vim/plugin/test/IndentAnything/test.js
utils-0.0.52 lib/utils/config/vim/plugin/test/IndentAnything/test.js
utils-0.0.51 lib/utils/config/vim/plugin/test/IndentAnything/test.js
utils-0.0.50 lib/utils/config/vim/plugin/test/IndentAnything/test.js
utils-0.0.49 lib/utils/config/vim/plugin/test/IndentAnything/test.js
utils-0.0.48 lib/utils/config/vim/plugin/test/IndentAnything/test.js