mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-02-18 11:31:20 -05:00
got comments within object and array literals working out
This commit is contained in:
15
test/fixtures/inner_comments.cs
vendored
Normal file
15
test/fixtures/inner_comments.cs
vendored
Normal 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
15
test/fixtures/inner_comments.js
vendored
Normal 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
|
||||
];
|
||||
})();
|
||||
Reference in New Issue
Block a user