Skip to content

Commit

Permalink
v1.4.1 JS experimentalObjectRestSpread
Browse files Browse the repository at this point in the history
  • Loading branch information
Hirse committed Oct 26, 2017
1 parent ffdff10 commit b0ba3e1
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 2 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@ All notable changes to this project will be documented in this file.
This project tries to adhere to [Semantic Versioning](http://semver.org/).


## 1.4.1 - 2017-10-25
### Fixed
- Support Python comments after function definitions (see [#99](https://github.com/Hirse/brackets-outline-list/issues/99)), thanks to [__@pelatx__](https://github.com/pelatx)
- Enable experimentalObjectRestSpread for JavaScript parsing (see [#103](https://github.com/Hirse/brackets-outline-list/issues/103))


## 1.4.0 - 2017-08-25
### Added
- Support for Vue Component Files using HTML mode (see [#98](https://github.com/Hirse/brackets-outline-list/issues/98))
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "hirse.outline-list",
"version": "1.4.0",
"version": "1.4.1",
"title": "Brackets Outline List",
"description": "Displays a list of the functions or definitions in the currently opened document. Works with CSS, CoffeeScript, HTML, Haxe, Jade, JavaScript, JSX, LESS, Markdown, PHP, Python, Ruby, SCSS, SVG, Stylus, and XML.",
"engines": {
Expand Down
3 changes: 2 additions & 1 deletion src/lexers/JSParser.js
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,8 @@ define(function JSParser(require, exports, module) {
ecmaVersion: 8,
sourceType: "module",
ecmaFeatures: {
jsx: true
jsx: true,
experimentalObjectRestSpread: true
}
});
} catch (error) {
Expand Down
6 changes: 6 additions & 0 deletions test/JavaScriptSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -256,5 +256,11 @@ define(function JavaScriptSpec(require) {
}
]);
});

it("103 - object rest/spread", function () {
var test = require("text!example/javascript/103-objectSpread.js");
var result = Parser.parse(test);
expect(result).toEqual([]);
});
});
});
2 changes: 2 additions & 0 deletions test/example/javascript/103-objectSpread.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
let obj1 = {foo : bar, bar : foo};
let obj2 = {...obj1, toto : tata};

0 comments on commit b0ba3e1

Please sign in to comment.