]> code.delx.au - gnu-emacs-elpa/log
gnu-emacs-elpa
7 years agoAdd a test for #335 as well
Dmitry Gutov [Sun, 29 May 2016 00:27:22 +0000 (03:27 +0300)]
Add a test for #335 as well

7 years agoMerge branch 'dgreensp-object-rest-spread'
Dmitry Gutov [Sun, 29 May 2016 00:06:57 +0000 (03:06 +0300)]
Merge branch 'dgreensp-object-rest-spread'

7 years agoBackport for fix for #335
Dmitry Gutov [Tue, 10 May 2016 23:37:51 +0000 (02:37 +0300)]
Backport for fix for #335

7 years agoMerge pull request #332 from bolivier/master
Dmitry Gutov [Wed, 4 May 2016 11:46:04 +0000 (14:46 +0300)]
Merge pull request #332 from bolivier/master

Allow space before global declaration

7 years agoMerge pull request #333 from daniellandau/master
Dmitry Gutov [Wed, 4 May 2016 11:45:11 +0000 (14:45 +0300)]
Merge pull request #333 from daniellandau/master

Change warning message to not conflict with spec

7 years agoChange warning message to not conflict with spec
Daniel Landau [Wed, 4 May 2016 11:35:55 +0000 (14:35 +0300)]
Change warning message to not conflict with spec

The ECMAScript spec says
(http://www.ecma-international.org/ecma-262/5.1/#sec-10.5) that
declaring an already declared variable is silently ignored, so claiming
it's a TypeError is not correct. It should still be highlighted as a
warning because it's not something that any program should do and with
let redeclaration actually is a TypeError.

7 years agoAllow space before global declaration
Brandon Olivier [Mon, 2 May 2016 19:14:06 +0000 (14:14 -0500)]
Allow space before global declaration

7 years agoDeclare vars created with renaming destructuring
Dmitry Gutov [Mon, 2 May 2016 00:26:52 +0000 (03:26 +0300)]
Declare vars created with renaming destructuring

Fixes regression from 0555a8a3.

7 years agoAdd :warnings-count keyword argument
Dmitry Gutov [Sun, 1 May 2016 23:58:48 +0000 (02:58 +0300)]
Add :warnings-count keyword argument

8 years agoMerge pull request #328 from XeCycle/iname-color
Dmitry Gutov [Wed, 27 Apr 2016 01:05:59 +0000 (04:05 +0300)]
Merge pull request #328 from XeCycle/iname-color

Colorize imported names as variables

8 years agoColorize imported names as variables
Carl Lei [Tue, 26 Apr 2016 06:27:32 +0000 (14:27 +0800)]
Colorize imported names as variables

8 years agoMerge pull request #327 from XeCycle/ckw-as
Dmitry Gutov [Wed, 27 Apr 2016 00:53:54 +0000 (03:53 +0300)]
Merge pull request #327 from XeCycle/ckw-as

Colorize contextual keyword as in import & export

8 years agoColorize contextual keywords as & from in import & export
Carl Lei [Tue, 26 Apr 2016 02:37:42 +0000 (10:37 +0800)]
Colorize contextual keywords as & from in import & export

8 years agoMerge pull request #326 from phst/compiler-warning-25
Dmitry Gutov [Sat, 9 Apr 2016 18:13:03 +0000 (21:13 +0300)]
Merge pull request #326 from phst/compiler-warning-25

Fix a byte compilation warning on Emacs 25

8 years agoFix a byte compilation warning on Emacs 25
Philipp Stephani [Fri, 8 Apr 2016 14:02:13 +0000 (16:02 +0200)]
Fix a byte compilation warning on Emacs 25

8 years agoFix more remaining failures
Dmitry Gutov [Sat, 9 Apr 2016 01:36:12 +0000 (04:36 +0300)]
Fix more remaining failures

Closes #324

8 years agoMerge pull request #325 from phst/all-tests
Dmitry Gutov [Sat, 9 Apr 2016 01:35:27 +0000 (04:35 +0300)]
Merge pull request #325 from phst/all-tests

Run all tests on 'make test'

8 years agoRun all tests on 'make test'
Philipp Stephani [Fri, 8 Apr 2016 13:56:03 +0000 (15:56 +0200)]
Run all tests on 'make test'

8 years agoFix the straggler
Dmitry Gutov [Sat, 2 Apr 2016 12:42:50 +0000 (15:42 +0300)]
Fix the straggler

8 years agoFix the tests broken in the previous commit
Dmitry Gutov [Sat, 2 Apr 2016 12:36:26 +0000 (15:36 +0300)]
Fix the tests broken in the previous commit

8 years agoUse idle timer to reparse, even when the buffer's just been opened
Dmitry Gutov [Sat, 2 Apr 2016 12:06:54 +0000 (15:06 +0300)]
Use idle timer to reparse, even when the buffer's just been opened

Fixes #20, in yet another way.

Also speeds up Emacs 25's xref-find-references and project-find-regexp.

8 years agoSpecial-case unary + and -
Dmitry Gutov [Sat, 2 Apr 2016 00:32:07 +0000 (03:32 +0300)]
Special-case unary + and -

Fixes #322

8 years agoMerge pull request #289 from dgreensp/fix-array-rest
Dmitry Gutov [Sun, 27 Mar 2016 00:58:16 +0000 (03:58 +0300)]
Merge pull request #289 from dgreensp/fix-array-rest

Fix array destructuring including triple-dot

8 years agojs2-indent-operator-re, js2-declaration-keyword-re: Use symbols boundaries
Dmitry Gutov [Fri, 18 Mar 2016 15:46:10 +0000 (17:46 +0200)]
js2-indent-operator-re, js2-declaration-keyword-re: Use symbols boundaries

Fixes #319

8 years agoFix computed property generator methods indentation
Dmitry Gutov [Sat, 5 Mar 2016 12:52:14 +0000 (14:52 +0200)]
Fix computed property generator methods indentation

Closes #317

8 years agoMerge pull request #308 from zmwangx/jsdoc-callback-func-method
Dmitry Gutov [Sun, 24 Jan 2016 19:32:18 +0000 (22:32 +0300)]
Merge pull request #308 from zmwangx/jsdoc-callback-func-method

Add support for JSDoc @callback, @func and @method tags

8 years agoAdd support for JSDoc @callback, @func and @method tags
Zhiming Wang [Sun, 24 Jan 2016 18:50:16 +0000 (10:50 -0800)]
Add support for JSDoc @callback, @func and @method tags

See http://usejsdoc.org/tags-callback.html for documentation of the
@callback tag; see http://usejsdoc.org/tags-function.html for
documentation of the @func and @method tags (both are synonyms of the
@function tag).

Closes #307.

8 years agoMerge pull request #304 from jacksonrayhamilton/fix-void-async-await
Dmitry Gutov [Sat, 9 Jan 2016 09:48:30 +0000 (12:48 +0300)]
Merge pull request #304 from jacksonrayhamilton/fix-void-async-await

Fix void async await

8 years agoSimplify await parsing
Jackson Ray Hamilton [Sat, 9 Jan 2016 04:58:57 +0000 (20:58 -0800)]
Simplify await parsing

8 years agoFix compiler warning
Jackson Hamilton [Sun, 3 Jan 2016 03:30:55 +0000 (19:30 -0800)]
Fix compiler warning

8 years agoRefactor async arrow function matching
Jackson Hamilton [Sun, 3 Jan 2016 03:24:51 +0000 (19:24 -0800)]
Refactor async arrow function matching

8 years agoRefactor await parsing to only parse once
Jackson Hamilton [Sun, 3 Jan 2016 03:15:49 +0000 (19:15 -0800)]
Refactor await parsing to only parse once

8 years agoFix typo
Jackson Hamilton [Sun, 3 Jan 2016 02:13:27 +0000 (18:13 -0800)]
Fix typo

8 years agoAdd tests for of parsing
Jackson Hamilton [Sun, 3 Jan 2016 00:13:34 +0000 (16:13 -0800)]
Add tests for of parsing

8 years agoFix await parsing
Jackson Hamilton [Sun, 3 Jan 2016 00:13:22 +0000 (16:13 -0800)]
Fix await parsing

8 years agoFix async parsing
Jackson Hamilton [Sat, 2 Jan 2016 23:18:04 +0000 (15:18 -0800)]
Fix async parsing

8 years agoFix void parsing
Jackson Hamilton [Sat, 2 Jan 2016 22:58:17 +0000 (14:58 -0800)]
Fix void parsing

8 years agoRemove js2-make-await as unused
Dmitry Gutov [Sat, 2 Jan 2016 04:25:41 +0000 (06:25 +0200)]
Remove js2-make-await as unused

8 years agoRecord class declarations for IMenu
Dmitry Gutov [Sat, 2 Jan 2016 04:24:40 +0000 (06:24 +0200)]
Record class declarations for IMenu

Closes #303

8 years agoAnd move its definition below
Dmitry Gutov [Sat, 2 Jan 2016 03:22:43 +0000 (05:22 +0200)]
And move its definition below

8 years agojs2-class-node: Inherit from js2-object-node
Dmitry Gutov [Sat, 2 Jan 2016 03:14:48 +0000 (05:14 +0200)]
js2-class-node: Inherit from js2-object-node

8 years agojs2-mode-extend-comment: Don't check that the next line is also commented
Dmitry Gutov [Thu, 31 Dec 2015 19:41:56 +0000 (21:41 +0200)]
js2-mode-extend-comment: Don't check that the next line is also commented

Fixes #302

8 years agoMerge pull request #297 from Christoph-D/master
Dmitry Gutov [Mon, 30 Nov 2015 12:05:50 +0000 (15:05 +0300)]
Merge pull request #297 from Christoph-D/master

Recognize for-of and for-in loops with const

8 years agoRecognize for-of and for-in loops with const
Christoph Dittmann [Mon, 30 Nov 2015 09:41:34 +0000 (10:41 +0100)]
Recognize for-of and for-in loops with const

Declarations in for-of and for-in loops may also be "const".  See
http://www.ecma-international.org/ecma-262/6.0/#sec-runtime-semantics-bindinginstantiation

8 years agoMerge pull request #294 from lunaryorn/patch-1
Dmitry Gutov [Tue, 17 Nov 2015 19:47:51 +0000 (22:47 +0300)]
Merge pull request #294 from lunaryorn/patch-1

Use SVG for Travis CI badge

8 years agoUse SVG for Travis CI badge
Sebastian Wiesner [Tue, 17 Nov 2015 19:02:37 +0000 (20:02 +0100)]
Use SVG for Travis CI badge

Let's be Retina friendly.

8 years agoFix a byte-compilation warning
Dmitry Gutov [Tue, 17 Nov 2015 01:08:22 +0000 (03:08 +0200)]
Fix a byte-compilation warning

8 years agoImplement object literal rest/spread (...)
David Greenspan [Wed, 11 Nov 2015 00:40:04 +0000 (16:40 -0800)]
Implement object literal rest/spread (...)

As discussed in #245, this syntax is not part of ES6/2015, but it is
a stage 2 proposal, meaning the committee expects it to be included
in the standard.  It's already seeing heavy use by e.g. the React
community.

This change causes `...expr` in an object literal to be parsed as a
unary-node element of an object-node, and modifies places where an
element of an object-node is expected to be an infix-node.  Note that
only weak typing assumptions are made already about object-node elems.

In addition, this change implements proper name extraction in
object literal destructuring.  The cases are:

1. `let {a} = x;`
2. `let {a: b} = x;` (should define `b`)
3. `let {a = b} = x;` (should define `a`)
4. `let {...a} = x;` (should define `a`)

This change fixes case (2), which was broken, and adds case (4).

8 years agoMerge pull request #290 from XeCycle/export-async-fn
Dmitry Gutov [Mon, 9 Nov 2015 02:46:27 +0000 (05:46 +0300)]
Merge pull request #290 from XeCycle/export-async-fn

Also parse async function statement in export node

8 years agoAlso parse async function statement in export node
Carl Lei [Mon, 9 Nov 2015 02:06:55 +0000 (10:06 +0800)]
Also parse async function statement in export node

AsyncFunctionDeclaration is added as a
HoistableDeclaration (http://tc39.github.io/ecmascript-asyncawait/#HoistableDeclaration),
which shall be covered in productions "export Declaration" and "export
default HoistableDeclaration".

8 years agoDo not print trailing semicolon for export function and class
Carl Lei [Mon, 9 Nov 2015 02:28:35 +0000 (10:28 +0800)]
Do not print trailing semicolon for export function and class

8 years agoFix array destructuring including triple-dot
David Greenspan [Sun, 8 Nov 2015 19:29:57 +0000 (11:29 -0800)]
Fix array destructuring including triple-dot

This change enables proper parsing of:
* `let [a, b, ...c] = d;`
* `let [[x,y] = [1,2]] = z;`

The first case is simply the "rest" part of "array rest/spread," which
lacked the appropriate cases in `js2-parse-array-literal` and
`js2-define-destruct-symbols`.  There's also new logic to make sure that
in the destructuring (rest) case, the rest element comes last (while
spread can occur anywhere).

The removal of the `;; destructuring bind` case of
`js2-parse-array-literal` may require some explanation.  It was doing
more harm than good.  For example, it assumed that only identifiers
have defaults.  Also, calling `js2-parse-destruct-primary-expr` is
unnecessary, since `js2-is-in-destructuring` is already true.  Rather
than add the triple-dot logic in two places, it was simpler to stop
distinguishing between destructuring and non-destructuring at this
level, because the grammars are extremely similar.  In addition, wacky
"vars" as in `let [f()] = x` throw an error anyway when they hit
`js2-define-destruct-symbols`.

8 years agoAdjust js2-print-export-node
Dmitry Gutov [Sat, 7 Nov 2015 17:50:31 +0000 (19:50 +0200)]
Adjust js2-print-export-node

#287

8 years agoMerge pull request #287 from dgreensp/fix-export-decls
Dmitry Gutov [Sat, 7 Nov 2015 17:49:03 +0000 (20:49 +0300)]
Merge pull request #287 from dgreensp/fix-export-decls

Fix semicolons and scoping in exported decls

8 years agoExported decls print a little funny; update tests
David Greenspan [Fri, 6 Nov 2015 07:59:20 +0000 (23:59 -0800)]
Exported decls print a little funny; update tests

8 years agoFix semicolons and scoping in exported decls
David Greenspan [Fri, 6 Nov 2015 07:32:14 +0000 (23:32 -0800)]
Fix semicolons and scoping in exported decls

In the following code, no semicolons should be considered missing,
and all of A,B,C,D should be considered declared.

```
export function A() {}
export class B {}
export default function C() {}
export default class D {}

var x = [A, B, C, D];
```

8 years agos/will/would
Dmitry Gutov [Fri, 6 Nov 2015 03:23:44 +0000 (05:23 +0200)]
s/will/would

8 years agoMerge pull request #283 from XeCycle/master-with-async
Dmitry Gutov [Fri, 6 Nov 2015 03:18:27 +0000 (06:18 +0300)]
Merge pull request #283 from XeCycle/master-with-async

Adapt old async to master & async methods

8 years agoAdd NEWS entry for async/await
Carl Lei [Fri, 6 Nov 2015 02:57:24 +0000 (10:57 +0800)]
Add NEWS entry for async/await

Marking experimental because there are some TODOs in the code, and the
proposal is not yet final anyway.

8 years agoParse async methods
Carl Lei [Thu, 5 Nov 2015 03:54:29 +0000 (11:54 +0800)]
Parse async methods

Refs https://github.com/mooz/js2-mode/issues/185#issuecomment-107710557

8 years agoAdd setImmediate and clearImmediate to js2-node-externs
Dmitry Gutov [Fri, 6 Nov 2015 02:10:22 +0000 (04:10 +0200)]
Add setImmediate and clearImmediate to js2-node-externs

Closes #286

8 years agoMerge pull request #285 from dgreensp/fix-param-destruct
Dmitry Gutov [Fri, 6 Nov 2015 02:06:25 +0000 (05:06 +0300)]
Merge pull request #285 from dgreensp/fix-param-destruct

Fix parsing of param with destructure and default

8 years agoFix parsing of param with destructure and default
David Greenspan [Thu, 5 Nov 2015 17:14:46 +0000 (09:14 -0800)]
Fix parsing of param with destructure and default

`function foo(bar, {a = {}} = {}) {/**/}`

8 years agoMerge pull request #284 from XeCycle/0o-octals
Dmitry Gutov [Thu, 5 Nov 2015 11:55:12 +0000 (14:55 +0300)]
Merge pull request #284 from XeCycle/0o-octals

Allow 0o octals in strict mode

8 years agoAllow 0o octals in strict mode
Carl Lei [Thu, 5 Nov 2015 05:21:43 +0000 (13:21 +0800)]
Allow 0o octals in strict mode

0o octals are allowed in ES6 strict mode, while octals like 0123 are
called LegacyOctalIntegerLiteral and remain disallowed.

8 years agoMove method type handling to property METHOD_TYPE
Carl Lei [Thu, 5 Nov 2015 03:43:40 +0000 (11:43 +0800)]
Move method type handling to property METHOD_TYPE

Relying on js2-node-type requires a token number for each type of
method, but we did not define a js2-ASYNC for the coming async methods.

Only getter and setter are moved, generator is not.

8 years agoAdapt async/await changes to latest master
Carl Lei [Thu, 5 Nov 2015 01:56:43 +0000 (09:56 +0800)]
Adapt async/await changes to latest master

Resolved conflicts:
- fix call signatures to js2-parse-function
- fix js2-AWAIT number
- adapt to rename of getter-setter-node to method-node

8 years agoMerge pull request #278 from redguardtoo/master
Dmitry Gutov [Tue, 3 Nov 2015 12:45:17 +0000 (15:45 +0300)]
Merge pull request #278 from redguardtoo/master

`js2-print-json-path' added

8 years ago`js2-print-json-path' added
Chen Bin [Thu, 29 Oct 2015 13:51:50 +0000 (00:51 +1100)]
`js2-print-json-path' added

8 years agoSupport .jsx file extension too in the example
Dmitry Gutov [Sun, 1 Nov 2015 13:08:00 +0000 (15:08 +0200)]
Support .jsx file extension too in the example

8 years agoMerge pull request #282 from jacksonrayhamilton/js2-jsx-mode
Dmitry Gutov [Sun, 1 Nov 2015 11:32:38 +0000 (14:32 +0300)]
Merge pull request #282 from jacksonrayhamilton/js2-jsx-mode

Add js2-jsx-mode

8 years agoAdd js2-jsx-mode usage instructions
Jackson Ray Hamilton [Sun, 1 Nov 2015 02:50:13 +0000 (19:50 -0700)]
Add js2-jsx-mode usage instructions

8 years agoAdd NEWS entry for js2-jsx-mode
Jackson Ray Hamilton [Sun, 1 Nov 2015 00:58:22 +0000 (17:58 -0700)]
Add NEWS entry for js2-jsx-mode

8 years agoCopy JSX indentation logic to js2-old-indent.el
Jackson Ray Hamilton [Sat, 31 Oct 2015 21:34:12 +0000 (14:34 -0700)]
Copy JSX indentation logic to js2-old-indent.el

8 years agoAdd js2-jsx-mode
Jackson Ray Hamilton [Sat, 31 Oct 2015 19:26:42 +0000 (12:26 -0700)]
Add js2-jsx-mode

8 years agoUpdate MELPA URL
Dmitry Gutov [Sat, 31 Oct 2015 14:42:30 +0000 (16:42 +0200)]
Update MELPA URL

8 years agoMerge pull request #280 from XeCycle/binding-pattern-initializer
Dmitry Gutov [Sat, 31 Oct 2015 01:35:33 +0000 (04:35 +0300)]
Merge pull request #280 from XeCycle/binding-pattern-initializer

Add default parameters support to destructuring

8 years agoMerge pull request #281 from robbyoconnor/patch-1
Dmitry Gutov [Fri, 30 Oct 2015 23:47:10 +0000 (02:47 +0300)]
Merge pull request #281 from robbyoconnor/patch-1

Add melpa badges

8 years agoAdd melpa badges
Robert (Robby) O'Connor [Fri, 30 Oct 2015 08:25:05 +0000 (04:25 -0400)]
Add melpa badges

Add melpa badges to the README

8 years agoReport error for binding initializer outside destructuring
Carl Lei [Fri, 30 Oct 2015 13:17:16 +0000 (21:17 +0800)]
Report error for binding initializer outside destructuring

This reports error for both object literals and class bodies, but only
tests object literals; because if ES7 class property initializers are
added, the error no longer makes sense and needs another message,
e.g. missing semicolon after property initializer.

8 years agoSupport initializer in destructuring
Carl Lei [Fri, 16 Oct 2015 03:31:22 +0000 (11:31 +0800)]
Support initializer in destructuring

Also known as default arguments.

8 years agoMerge pull request #279 from XeCycle/class-semicolon-elem
Dmitry Gutov [Fri, 30 Oct 2015 02:46:05 +0000 (05:46 +0300)]
Merge pull request #279 from XeCycle/class-semicolon-elem

Allow semicolons in a class body

8 years agoAllow semicolons in a class body
Carl Lei [Fri, 16 Oct 2015 01:11:00 +0000 (09:11 +0800)]
Allow semicolons in a class body

8 years agoMerge pull request #276 from XeCycle/methods
Dmitry Gutov [Fri, 30 Oct 2015 02:40:00 +0000 (05:40 +0300)]
Merge pull request #276 from XeCycle/methods

Rename getter-setter-node to method-node

8 years agoAdd NEWS entry about rename to method-node
Carl Lei [Thu, 15 Oct 2015 12:20:55 +0000 (20:20 +0800)]
Add NEWS entry about rename to method-node

8 years agoRefactor: rename getter-setter-node to method-node
Carl Lei [Thu, 15 Oct 2015 12:34:47 +0000 (20:34 +0800)]
Refactor: rename getter-setter-node to method-node

8 years agoAdd test on shorthand method name and scoping
Carl Lei [Thu, 15 Oct 2015 11:55:32 +0000 (19:55 +0800)]
Add test on shorthand method name and scoping

8 years agoRefactor: unify computed property name handling
Carl Lei [Wed, 14 Oct 2015 08:53:27 +0000 (16:53 +0800)]
Refactor: unify computed property name handling

8 years agoHandle open-curlies after newline
Dmitry Gutov [Tue, 27 Oct 2015 11:56:25 +0000 (13:56 +0200)]
Handle open-curlies after newline

Fixes #277

8 years agojs2-parse-highlight-prop-get: Take care now to overwrite the js2-function-call face
Dmitry Gutov [Mon, 26 Oct 2015 10:05:49 +0000 (12:05 +0200)]
js2-parse-highlight-prop-get: Take care now to overwrite the js2-function-call face

#272

8 years agoAdd a test for the latest change
Dmitry Gutov [Thu, 15 Oct 2015 19:52:57 +0000 (22:52 +0300)]
Add a test for the latest change

8 years agoDon't misindent generator methods
Dmitry Gutov [Thu, 15 Oct 2015 19:44:07 +0000 (22:44 +0300)]
Don't misindent generator methods

Fixes #275 in the old-indent subpackage; Emacs 25 snapshot users
should update to the latest version.

8 years agoAlso highlight property lookups with the same face
Dmitry Gutov [Tue, 13 Oct 2015 13:56:42 +0000 (16:56 +0300)]
Also highlight property lookups with the same face

#272

8 years agoDefine js2-object-property face
Dmitry Gutov [Mon, 12 Oct 2015 14:34:41 +0000 (17:34 +0300)]
Define js2-object-property face

#272

8 years agoFix 'make all' on older emacsen
Dmitry Gutov [Thu, 1 Oct 2015 03:20:32 +0000 (06:20 +0300)]
Fix 'make all' on older emacsen

Closes #268

8 years agoMerge pull request #266 from jacksonrayhamilton/no-getter-setter-duplicate
Dmitry Gutov [Fri, 11 Sep 2015 08:16:40 +0000 (11:16 +0300)]
Merge pull request #266 from jacksonrayhamilton/no-getter-setter-duplicate

Don't treat getter / setter pairs as duplicates

8 years agoDon't treat getter / setter pairs as duplicates
Jackson Hamilton [Fri, 11 Sep 2015 04:09:56 +0000 (21:09 -0700)]
Don't treat getter / setter pairs as duplicates

Fixes #264

8 years agoRephrase
Dmitry Gutov [Wed, 9 Sep 2015 18:37:51 +0000 (21:37 +0300)]
Rephrase

8 years agoAdd NEWS and bump the version
Dmitry Gutov [Wed, 9 Sep 2015 18:36:29 +0000 (21:36 +0300)]
Add NEWS and bump the version

8 years agoExplicitly remap js-find-symbol
Dmitry Gutov [Wed, 9 Sep 2015 03:49:38 +0000 (06:49 +0300)]
Explicitly remap js-find-symbol

#159