Changeset View
Changeset View
Standalone View
Standalone View
autotests/folding/test.js.fold
1 | #! shebang | 1 | #! shebang | ||
---|---|---|---|---|---|
2 | #! no-shebang | 2 | #! no-shebang | ||
3 | 3 | | |||
4 | <beginfold id='2'>/*</beginfold id='2'> comment <endfold id='2'>*/</endfold id='2'> | 4 | <beginfold id='3'>/*</beginfold id='3'> comment <endfold id='3'>*/</endfold id='3'> | ||
5 | 5 | | |||
6 | function fun() | 6 | function fun() | ||
7 | <beginfold id='3'>{</beginfold id='3'> | 7 | <beginfold id='2'>{</beginfold id='2'> | ||
8 | var boo = <beginfold id='3'>{</beginfold id='3'> 'key': [ 1, 2.0, 3.0e1, 004, 0x5 ] <endfold id='3'>}</endfold id='3'>; | 8 | var boo = <beginfold id='2'>{</beginfold id='2'> 'key': [ 1, 2.0, 3.0e1, 004, 0x5 ] <endfold id='2'>}</endfold id='2'>; | ||
9 | <endfold id='3'>}</endfold id='3'> | 9 | <endfold id='2'>}</endfold id='2'> | ||
10 | 10 | | |||
11 | class MyClass; // reserved keywords | 11 | class MyClass; // reserved keywords | ||
12 | 12 | | |||
13 | // Member objects: text after "." | 13 | // Member objects: text after "." | ||
14 | object.property instanceof Number; | 14 | object.property instanceof Number; | ||
15 | iden1.iden2 . iden3.class class; | 15 | iden1.iden2 . iden3.class class; | ||
16 | 16 | | |||
17 | var escapes = "aa\b\n\0a\"a\x12a\32a\u{123}a\$\%\ \#\y\aaa\ | 17 | var escapes = "aa\b\n\0a\"a\x12a\32a\u{123}a\$\%\ \#\y\aaa\ | ||
18 | aaa"; | 18 | aaa"; | ||
19 | var octal = 0o124; | 19 | var octal = 0o124; | ||
20 | var bin = 0b1010; | 20 | var bin = 0b1010; | ||
21 | 21 | | |||
22 | ლಠ益ಠლ.ñá = 42; | 22 | ლಠ益ಠლ.ñá = 42; | ||
23 | δ /No-RegExp/ | 23 | δ /No-RegExp/ |