]> code.delx.au - gnu-emacs-elpa/log
gnu-emacs-elpa
8 years agoTry a containerized Travis build
Dmitry Gutov [Sat, 18 Jul 2015 01:32:41 +0000 (04:32 +0300)]
Try a containerized Travis build

8 years agoFix indentation tests, by always loading js2-old-indent
Dmitry Gutov [Sat, 18 Jul 2015 01:19:00 +0000 (04:19 +0300)]
Fix indentation tests, by always loading js2-old-indent

8 years agoDerive from js-mode
Dmitry Gutov [Sat, 18 Jul 2015 01:05:41 +0000 (04:05 +0300)]
Derive from js-mode

8 years agoUse indentation code from js-mode when we can
Dmitry Gutov [Sat, 18 Jul 2015 00:40:37 +0000 (03:40 +0300)]
Use indentation code from js-mode when we can

Some options has been left without aliases, even though they have
counterparts in js.el, because their values are incompatible:

js2-pretty-multiline-declarations -> js-indent-first-init
js2-indent-switch-body -> js-switch-indent-offset

After upgrading to Emacs 25, the affected users will have to customize
them anew.

8 years agoAnd actually update NEWS
Dmitry Gutov [Sun, 12 Jul 2015 22:33:56 +0000 (01:33 +0300)]
And actually update NEWS

8 years agoActually remove the macro
Dmitry Gutov [Sun, 12 Jul 2015 22:33:05 +0000 (01:33 +0300)]
Actually remove the macro

8 years agoAdd NEWS entry and bump version
Dmitry Gutov [Sun, 12 Jul 2015 22:26:51 +0000 (01:26 +0300)]
Add NEWS entry and bump version

8 years agoGet rid of js2-with-underscore-as-word-syntax
Dmitry Gutov [Sun, 12 Jul 2015 22:09:01 +0000 (01:09 +0300)]
Get rid of js2-with-underscore-as-word-syntax

8 years agoRemove js2-current-indent
Dmitry Gutov [Sun, 12 Jul 2015 17:35:26 +0000 (20:35 +0300)]
Remove js2-current-indent

8 years agoMerge pull request #242 from jacksonrayhamilton/strict-mode
Dmitry Gutov [Tue, 30 Jun 2015 20:36:28 +0000 (23:36 +0300)]
Merge pull request #242 from jacksonrayhamilton/strict-mode

Strict mode

8 years agoFix bug where properties where checked for strict mode compliance
Jackson Ray Hamilton [Tue, 30 Jun 2015 16:53:43 +0000 (09:53 -0700)]
Fix bug where properties where checked for strict mode compliance

8 years agoCleanup
Jackson Ray Hamilton [Thu, 25 Jun 2015 10:50:14 +0000 (03:50 -0700)]
Cleanup

8 years agoRemove strict mode slots on nodes.
Jackson Ray Hamilton [Thu, 25 Jun 2015 10:43:12 +0000 (03:43 -0700)]
Remove strict mode slots on nodes.

8 years agoReparse strict functions.
Jackson Ray Hamilton [Thu, 25 Jun 2015 10:41:47 +0000 (03:41 -0700)]
Reparse strict functions.

8 years agosetq inline
Jackson Ray Hamilton [Mon, 8 Jun 2015 09:47:47 +0000 (02:47 -0700)]
setq inline

8 years agoFix refactoring regression.
Jackson Ray Hamilton [Mon, 8 Jun 2015 09:31:44 +0000 (02:31 -0700)]
Fix refactoring regression.

8 years agoReport the correct octal number error
Jackson Ray Hamilton [Mon, 8 Jun 2015 08:29:45 +0000 (01:29 -0700)]
Report the correct octal number error

8 years agoDon't treat a block-scoped const as redeclaration
Jackson Ray Hamilton [Mon, 8 Jun 2015 08:25:58 +0000 (01:25 -0700)]
Don't treat a block-scoped const as redeclaration

8 years agoCleanup
Jackson Ray Hamilton [Mon, 8 Jun 2015 07:35:32 +0000 (00:35 -0700)]
Cleanup

8 years agoDuplicate object keys are an error in strict mode
Jackson Ray Hamilton [Mon, 8 Jun 2015 07:15:03 +0000 (00:15 -0700)]
Duplicate object keys are an error in strict mode

8 years agoOctal syntax is an error in strict mode
Jackson Ray Hamilton [Mon, 8 Jun 2015 05:37:52 +0000 (22:37 -0700)]
Octal syntax is an error in strict mode

8 years agowith statements are syntax errors in strict mode
Jackson Ray Hamilton [Mon, 8 Jun 2015 04:46:00 +0000 (21:46 -0700)]
with statements are syntax errors in strict mode

8 years agoCheck identifiers in strict mode.
Jackson Ray Hamilton [Mon, 8 Jun 2015 04:32:03 +0000 (21:32 -0700)]
Check identifiers in strict mode.

8 years agoTest const scoping.
Jackson Ray Hamilton [Sun, 7 Jun 2015 22:56:02 +0000 (15:56 -0700)]
Test const scoping.

8 years agoTrack script and function strict mode.
Jackson Ray Hamilton [Sun, 7 Jun 2015 22:55:45 +0000 (15:55 -0700)]
Track script and function strict mode.

8 years agoRespect strict mode.
Jackson Ray Hamilton [Sun, 7 Jun 2015 09:50:58 +0000 (02:50 -0700)]
Respect strict mode.

8 years agoDefine const variables in the current block.
Jackson Ray Hamilton [Mon, 18 May 2015 05:48:48 +0000 (22:48 -0700)]
Define const variables in the current block.

9 years agojs2-node-externs: Add querystring
Dmitry Gutov [Sun, 24 May 2015 11:26:54 +0000 (14:26 +0300)]
js2-node-externs: Add querystring

9 years agoAdd NEWS entry
Dmitry Gutov [Thu, 14 May 2015 12:52:54 +0000 (15:52 +0300)]
Add NEWS entry

9 years agoHighlight unused and/or uninitialized variables
Lele Gaifax [Thu, 14 May 2015 12:47:14 +0000 (15:47 +0300)]
Highlight unused and/or uninitialized variables

Adding new js2-highlight-unused-variables-mode.

Closes #212, closes #233

9 years agoFix object keys highlighting (closes #234)
Dmitry Gutov [Wed, 13 May 2015 14:58:20 +0000 (17:58 +0300)]
Fix object keys highlighting (closes #234)

Regression from c13eda4.

9 years agoAdd a NEWS entry for d4d9c54
Dmitry Gutov [Mon, 11 May 2015 02:12:37 +0000 (05:12 +0300)]
Add a NEWS entry for d4d9c54

9 years agoMerge pull request #232 from jacksonrayhamilton/unset-identifiers
Dmitry Gutov [Sun, 3 May 2015 13:17:28 +0000 (16:17 +0300)]
Merge pull request #232 from jacksonrayhamilton/unset-identifiers

Don't unset `js2-recorded-identifiers'

9 years agoDon't unset `js2-recorded-identifiers'
Jackson Ray Hamilton [Sun, 3 May 2015 12:38:09 +0000 (05:38 -0700)]
Don't unset `js2-recorded-identifiers'

9 years agoMerge pull request #231 from shicks/computed
Dmitry Gutov [Fri, 1 May 2015 12:50:56 +0000 (15:50 +0300)]
Merge pull request #231 from shicks/computed

Generalize object literal parsing to understand computed function names

9 years agoGeneralize object literal parsing to support short-hand function/generator/getter...
Stephen Hicks [Mon, 27 Apr 2015 02:17:57 +0000 (19:17 -0700)]
Generalize object literal parsing to support short-hand function/generator/getter/setter declarations with all kinds of keys (string, named, computed, numeric).

Previously only a subset of combinations were supported, but appear to be allowed by the spec.

9 years agoAddress two FIXMEs; fix a regression flagged by tests
Dmitry Gutov [Fri, 24 Apr 2015 02:29:04 +0000 (05:29 +0300)]
Address two FIXMEs; fix a regression flagged by tests

9 years agoMerge commit '9790b9781aa8ca1d4bdf94d06d4e8ff2e68d37e8' into js2-mode-master
Dmitry Gutov [Fri, 24 Apr 2015 00:11:03 +0000 (03:11 +0300)]
Merge commit '9790b9781aa8ca1d4bdf94d06d4e8ff2e68d37e8' into js2-mode-master

9 years ago* js2-mode.el (js2-mode): Use cursor-sensor-mode if available.
Stefan Monnier [Wed, 15 Apr 2015 21:18:37 +0000 (17:18 -0400)]
* js2-mode.el (js2-mode): Use cursor-sensor-mode if available.

(js2-export-node): Fix apparent paren typo.
(js2-get-token-internal-1): Remove unused var `quote-char'.
(js2-clear-face): Also remove cursor-sensor-functions.
(js2-parse-primary-expr): Remove unused var `pn'.
(js2-parse-legacy-array-comp): Remove unused var `first'.
(js2-mode-show-node, js2-mode-show-warn-or-err): Use cursor-sensor-functions
if available.
(js2-mode-hide-overlay, js2-echo-error): Adapt to new calling convention.
(js2-echo-help): Declare obsolete.
(js2-mode-extend-comment): Look for the appropriate property.

9 years agoMerge pull request #195 from jacksonrayhamilton/pretty-multiline-declarations
Dmitry Gutov [Mon, 6 Apr 2015 20:41:30 +0000 (23:41 +0300)]
Merge pull request #195 from jacksonrayhamilton/pretty-multiline-declarations

js2-pretty-multiline-declarations: Add 'dynamic option

9 years agojs2-pretty-multiline-declarations: Add 'dynamic option
Jackson Ray Hamilton [Fri, 9 Jan 2015 06:43:35 +0000 (22:43 -0800)]
js2-pretty-multiline-declarations: Add 'dynamic option

9 years agoDon't indent in multiline strings
Dmitry Gutov [Fri, 3 Apr 2015 04:26:29 +0000 (07:26 +0300)]
Don't indent in multiline strings

Fixes #227

9 years agoAssign quote syntax to backquotes
Dmitry Gutov [Thu, 5 Mar 2015 02:21:54 +0000 (04:21 +0200)]
Assign quote syntax to backquotes

Fixes #222

9 years agoMerge pull request #221 from jacksonrayhamilton/enclosing-scope
Dmitry Gutov [Sun, 1 Mar 2015 11:37:55 +0000 (13:37 +0200)]
Merge pull request #221 from jacksonrayhamilton/enclosing-scope

Fix js2-node-get-enclosing-scope

9 years agoMerge pull request #220 from jacksonrayhamilton/comment-length
Dmitry Gutov [Sun, 1 Mar 2015 10:06:52 +0000 (12:06 +0200)]
Merge pull request #220 from jacksonrayhamilton/comment-length

Fix off-by-one error for comment node length

9 years agoFix js2-node-get-enclosing-scope
Jackson Ray Hamilton [Sun, 1 Mar 2015 07:23:23 +0000 (23:23 -0800)]
Fix js2-node-get-enclosing-scope

Previously this function discriminated against nodes that did not have
parents.  For such nodes, nil should have been returned, but instead an
error was emitted because a parentless node would produce the initial
parent nil, which would cause js2-node-parent to blow up.  This fixes
that.

9 years agoFix off-by-one error for comment node length
Jackson Ray Hamilton [Sat, 28 Feb 2015 18:45:24 +0000 (10:45 -0800)]
Fix off-by-one error for comment node length

9 years ago...or any following one
Dmitry Gutov [Tue, 24 Feb 2015 13:48:49 +0000 (15:48 +0200)]
...or any following one

Likewise, js2-match-token scanned the next token with the wrong modifier.

Instead of adding an optional argument, I've opted to use
js2-get-prop-name-token, in order not to duplicate the version check.

#216

9 years agoParse without error first method in a class with keyword name
Dmitry Gutov [Tue, 24 Feb 2015 05:27:46 +0000 (07:27 +0200)]
Parse without error first method in a class with keyword name

Make 'static' just a reserved word, for now. Traceur calls it that anyway.

Using js2-match-token was a problem because it stored a wrong token in
js2-ti-tokens (read without the modifier).

Fixes #216

9 years agoFix js2-paren-node length
Dmitry Gutov [Fri, 20 Feb 2015 13:43:48 +0000 (15:43 +0200)]
Fix js2-paren-node length

#214

9 years agoRely on bogus scopes less
Dmitry Gutov [Thu, 19 Feb 2015 15:49:40 +0000 (17:49 +0200)]
Rely on bogus scopes less

9 years agoMerge pull request #213 from lelit/typos
Dmitry Gutov [Sat, 7 Feb 2015 18:27:46 +0000 (21:27 +0300)]
Merge pull request #213 from lelit/typos

Fix typos in comments and docstrings

9 years agoFix typos in comments and docstrings
Lele Gaifax [Sat, 7 Feb 2015 17:12:13 +0000 (18:12 +0100)]
Fix typos in comments and docstrings

9 years agoMerge pull request #211 from cowboyd/no-semicolon-warning-on-function-export
Dmitry Gutov [Fri, 6 Feb 2015 21:59:26 +0000 (00:59 +0300)]
Merge pull request #211 from cowboyd/no-semicolon-warning-on-function-export

do auto semicolon insert on function exports

9 years agodo auto semicolon insert on function exports
Charles Lowell [Thu, 5 Feb 2015 21:50:03 +0000 (15:50 -0600)]
do auto semicolon insert on function exports

9 years agoMerge branch 'let-temporal-dz'
Dmitry Gutov [Mon, 2 Feb 2015 03:25:10 +0000 (05:25 +0200)]
Merge branch 'let-temporal-dz'

9 years agoBump the version and update NEWS
Dmitry Gutov [Mon, 2 Feb 2015 03:10:26 +0000 (05:10 +0200)]
Bump the version and update NEWS

9 years agoHighlight JS snippets
Dmitry Gutov [Mon, 2 Feb 2015 02:35:34 +0000 (04:35 +0200)]
Highlight JS snippets

9 years agoAdd top-level heading
Dmitry Gutov [Mon, 2 Feb 2015 02:30:17 +0000 (04:30 +0200)]
Add top-level heading

9 years agoMove the news from the wiki to the repo
Dmitry Gutov [Mon, 2 Feb 2015 02:29:00 +0000 (04:29 +0200)]
Move the news from the wiki to the repo

9 years agoCheck that the let declaration comes before the reference
Dmitry Gutov [Mon, 2 Feb 2015 02:25:15 +0000 (04:25 +0200)]
Check that the let declaration comes before the reference

Implementing, more or less, the ES6 "temporal dead zone" for let.

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/let#Temporal_dead_zone_and_errors_with_let
https://bugzilla.mozilla.org/show_bug.cgi?id=1001090

9 years agoFix free variable references
Dmitry Gutov [Mon, 2 Feb 2015 01:16:34 +0000 (03:16 +0200)]
Fix free variable references

Props to Flycheck.

9 years agojs2-test-parse-string: Compare the first syntax error
Dmitry Gutov [Mon, 2 Feb 2015 01:02:27 +0000 (03:02 +0200)]
js2-test-parse-string: Compare the first syntax error

9 years agoHandle arrowfun empty-args in js2-parse-paren-expr-or-generator-comp
Dmitry Gutov [Mon, 2 Feb 2015 00:58:04 +0000 (02:58 +0200)]
Handle arrowfun empty-args in js2-parse-paren-expr-or-generator-comp

Fixes #206

Doing `js2-unget-token' when handling a spurious right paren got us
into infloop.

9 years agojs2-parse-class-stmt: Define the class in the current scope
Dmitry Gutov [Sun, 1 Feb 2015 06:29:03 +0000 (08:29 +0200)]
js2-parse-class-stmt: Define the class in the current scope

Fixes #204

9 years agoMerge pull request #203 from cheunghy/master
Dmitry Gutov [Fri, 30 Jan 2015 11:03:34 +0000 (13:03 +0200)]
Merge pull request #203 from cheunghy/master

`js2-time' remove unused variable.

9 years ago`js2-time' remove unused variable.
Zhang Kai Yu [Fri, 30 Jan 2015 02:28:03 +0000 (10:28 +0800)]
`js2-time' remove unused variable.

9 years agoMerge pull request #202 from brianloveswords/add-browser-externs
Dmitry Gutov [Wed, 28 Jan 2015 00:20:34 +0000 (02:20 +0200)]
Merge pull request #202 from brianloveswords/add-browser-externs

Add animationFrame functions

9 years agoAdd animationFrame functions
Brian J Brennan [Tue, 27 Jan 2015 22:05:38 +0000 (14:05 -0800)]
Add animationFrame functions

This adds two functions to the browser externs list:

- `requestAnimationFrame`
- `cancelAnimationFrame`

See http://www.w3.org/TR/animation-timing/#requestAnimationFrame for
details.

9 years agoHandle "arguments" specially
Dmitry Gutov [Mon, 26 Jan 2015 19:54:45 +0000 (21:54 +0200)]
Handle "arguments" specially

Fixes #199

9 years agojs2-get-token-internal-1: Reindent
Dmitry Gutov [Tue, 30 Dec 2014 15:17:40 +0000 (17:17 +0200)]
js2-get-token-internal-1: Reindent

9 years agoMerge pull request #191 from purcell/cl-lib
Dmitry Gutov [Tue, 30 Dec 2014 15:05:01 +0000 (17:05 +0200)]
Merge pull request #191 from purcell/cl-lib

Replace usage of 'cl with 'cl-lib

9 years agoHighlight methods with font-lock-function-name-face
Dmitry Gutov [Tue, 30 Dec 2014 14:28:17 +0000 (16:28 +0200)]
Highlight methods with font-lock-function-name-face

Fixes #192

9 years agoReplace usage of 'cl with 'cl-lib
Steve Purcell [Mon, 29 Dec 2014 15:32:33 +0000 (15:32 +0000)]
Replace usage of 'cl with 'cl-lib

9 years agoSupport ES6 module syntax
Charles Lowell [Mon, 29 Dec 2014 01:06:12 +0000 (03:06 +0200)]
Support ES6 module syntax

Closes #175

9 years agojs2-parse-for: Reword docstring and comments
Dmitry Gutov [Sun, 28 Dec 2014 20:54:19 +0000 (22:54 +0200)]
js2-parse-for: Reword docstring and comments

9 years agoMake catch-node inherit from scope
Dmitry Gutov [Sun, 28 Dec 2014 20:53:45 +0000 (22:53 +0200)]
Make catch-node inherit from scope

Fixes #190

9 years agoLimit the scope of `with-silent-modifications'
Dmitry Gutov [Wed, 24 Dec 2014 11:47:04 +0000 (13:47 +0200)]
Limit the scope of `with-silent-modifications'

Fixes #188

9 years agoDo not declare fn expression's name in the enclosing scope
Dmitry Gutov [Sun, 7 Dec 2014 05:47:52 +0000 (07:47 +0200)]
Do not declare fn expression's name in the enclosing scope

Fixes #186

9 years agoFix js2-visit-tagged-template
Dmitry Gutov [Sun, 7 Dec 2014 03:52:35 +0000 (05:52 +0200)]
Fix js2-visit-tagged-template

9 years agoAdd js2-language-version check for template literals
Dmitry Gutov [Mon, 1 Dec 2014 13:09:32 +0000 (15:09 +0200)]
Add js2-language-version check for template literals

9 years agoDrop `js2-allow-keywords-as-property-names' and `js2-valid-prop-name-token'
Dmitry Gutov [Mon, 1 Dec 2014 13:03:54 +0000 (15:03 +0200)]
Drop `js2-allow-keywords-as-property-names' and `js2-valid-prop-name-token'

In favor of js2-language-version check and the new function
js2-get-prop-name-token, respectively.

9 years agoParse tagged templates
Dmitry Gutov [Mon, 1 Dec 2014 01:09:58 +0000 (03:09 +0200)]
Parse tagged templates

Closes #153

9 years agoComment the new token types
Dmitry Gutov [Sun, 30 Nov 2014 18:26:28 +0000 (20:26 +0200)]
Comment the new token types

9 years agoNo need to explicitly apply face to string nodes
Dmitry Gutov [Sun, 30 Nov 2014 18:23:32 +0000 (20:23 +0200)]
No need to explicitly apply face to string nodes

9 years agoHandle template substitutions
Dmitry Gutov [Sun, 30 Nov 2014 18:17:48 +0000 (20:17 +0200)]
Handle template substitutions

#153

9 years agoImplement template strings, ignoring substitutions
Dmitry Gutov [Fri, 28 Nov 2014 03:01:26 +0000 (05:01 +0200)]
Implement template strings, ignoring substitutions

Issue #153

9 years agojs2-imenu-extension-styles: Turn into defvar
Chen Bin [Sat, 22 Nov 2014 01:41:21 +0000 (03:41 +0200)]
js2-imenu-extension-styles: Turn into defvar

Closes #169

9 years agojs2-parse-plain-property: Disallow numbers as abbreviated props
Dmitry Gutov [Fri, 21 Nov 2014 15:30:41 +0000 (17:30 +0200)]
js2-parse-plain-property: Disallow numbers as abbreviated props

9 years agojs2-parse-named-prop: Highlight externals in abbreviated props
Dmitry Gutov [Fri, 21 Nov 2014 14:53:06 +0000 (16:53 +0200)]
js2-parse-named-prop: Highlight externals in abbreviated props

9 years agoSimplify parsing of destructuring literals
Dmitry Gutov [Fri, 21 Nov 2014 14:11:34 +0000 (16:11 +0200)]
Simplify parsing of destructuring literals

js2-parse-named-prop: Drop the "in destructuring" case, parse as abbreviated props.
js2-define-destruct-symbols: Don't expect js2-name nodes directly in js2-object-node.
js2-object-prop-node: Document `SHORTHAND'.

9 years agoMerge branch 'master' of github.com:shicks/js2-mode into shicks-master
Dmitry Gutov [Tue, 18 Nov 2014 12:58:24 +0000 (14:58 +0200)]
Merge branch 'master' of github.com:shicks/js2-mode into shicks-master

Conflicts:
js2-mode.el

9 years agoBump the version
Dmitry Gutov [Tue, 18 Nov 2014 12:51:24 +0000 (14:51 +0200)]
Bump the version

9 years ago'enum' is not a keyword
Dmitry Gutov [Tue, 18 Nov 2014 00:13:35 +0000 (02:13 +0200)]
'enum' is not a keyword

Fixes #183

9 years agoHandle orphan functions on the right side of js2-var-init-node
Dmitry Gutov [Mon, 17 Nov 2014 02:24:03 +0000 (04:24 +0200)]
Handle orphan functions on the right side of js2-var-init-node

Fixes #182

9 years agoBump the version
Dmitry Gutov [Sat, 15 Nov 2014 20:29:14 +0000 (22:29 +0200)]
Bump the version

9 years agoMerge pull request #180 from simenheg/master
Dmitry Gutov [Sat, 15 Nov 2014 18:54:08 +0000 (20:54 +0200)]
Merge pull request #180 from simenheg/master

Fix toggling single-line comments

9 years agoFix toggling single-line comments
Simen Heggestøyl [Sat, 15 Nov 2014 16:19:50 +0000 (17:19 +0100)]
Fix toggling single-line comments

Fixes #179

9 years agoFix string literals in parser.el test harness.
Stephen Hicks [Tue, 11 Nov 2014 02:13:42 +0000 (18:13 -0800)]
Fix string literals in parser.el test harness.

Previously all string literals in tests would fail, because they referred to a temporary buffer that no longer exists.  This fix works around this by extending the life of the temporary input buffer.

9 years agoSupport parsing the ES6 'super' keyword.
Stephen Hicks [Tue, 11 Nov 2014 02:05:31 +0000 (18:05 -0800)]
Support parsing the ES6 'super' keyword.

This is basically implemented by imitating the handling of 'this', since they behave in very similar ways.  The keyword is defined in the various productions in §12.3 of the draft ES6 spec: http://people.mozilla.org/~jorendorff/es6-draft.html#sec-left-hand-side-expressions, and usage examples are available at e.g. https://github.com/lukehoban/es6features#classes.