got comments within object and array literals working out

This commit is contained in:
Jeremy Ashkenas
2009-12-22 11:50:43 -05:00
parent 65809d08f6
commit ec58d6fda2
6 changed files with 47 additions and 4 deletions

15
test/fixtures/inner_comments.cs vendored Normal file
View File

@@ -0,0 +1,15 @@
object: {
a: 1
# Comments between the elements.
b: 2
# Like this.
c: 3
}
array: [
1
# Comments between the elements.
2
# Like this.
3
]

15
test/fixtures/inner_comments.js vendored Normal file
View File

@@ -0,0 +1,15 @@
(function(){
var object = {
a: 1,
// Comments between the elements.
b: 2,
// Like this.
c: 3
};
var array = [1,
// Comments between the elements.
2,
// Like this.
3
];
})();