]>
code.delx.au - gnu-emacs-elpa/log
Dmitry Gutov [Sun, 17 Feb 2013 03:14:38 +0000 (07:14 +0400)]
keywords-as-property-names is also valid JS 5.1
Refs #41
Dmitry Gutov [Sun, 17 Feb 2013 02:52:05 +0000 (06:52 +0400)]
Trailing comma is legal ecma-262-5.1
Fixes #85
Dmitry Gutov [Sun, 10 Feb 2013 05:03:53 +0000 (09:03 +0400)]
Make sure js2-mode-ast is available for callbacks
Dmitry Gutov [Wed, 26 Dec 2012 03:33:43 +0000 (07:33 +0400)]
Returns -> Return
Dmitry Gutov [Wed, 26 Dec 2012 03:26:21 +0000 (07:26 +0400)]
Toggles -> Toggle
Dmitry Gutov [Tue, 25 Dec 2012 00:08:50 +0000 (04:08 +0400)]
2011, too
Dmitry Gutov [Mon, 24 Dec 2012 23:20:16 +0000 (03:20 +0400)]
Tweak headers, remove extra variables, set the version to 1.1
Dmitry Gutov [Wed, 12 Dec 2012 21:27:53 +0000 (01:27 +0400)]
Merge branch 'master' into emacs24
Conflicts:
js2-mode.el
Dmitry Gutov [Wed, 12 Dec 2012 21:21:22 +0000 (01:21 +0400)]
Fix #77, left over from #58
Also, don't walk the tree unless js2-mode-show-overlay is t.
Dmitry Gutov [Wed, 12 Dec 2012 21:17:07 +0000 (01:17 +0400)]
Pretend to merge branch 'master' into emacs24
Conflicts:
README.md
js2-mode.el
Dmitry Gutov [Wed, 3 Oct 2012 01:31:10 +0000 (05:31 +0400)]
Show keybindings in the mode description
Close #71
Dmitry Gutov [Sat, 29 Sep 2012 02:34:07 +0000 (06:34 +0400)]
Fix #68
While we're at it, allow empty lines inside a continued expression.
Dmitry Gutov [Sat, 29 Sep 2012 02:34:07 +0000 (06:34 +0400)]
Fix #68
While we're at it, allow empty lines inside a continued expression.
Dmitry Gutov [Sat, 22 Sep 2012 19:06:47 +0000 (23:06 +0400)]
js2-mode-extend-comment: Move (js2-indent-line) outside the (cond)
Dmitry Gutov [Sat, 22 Sep 2012 18:51:52 +0000 (22:51 +0400)]
Simplify error list annotation and destructuring
Dmitry Gutov [Sat, 22 Sep 2012 13:31:20 +0000 (17:31 +0400)]
Fix js2-display-error-list
Regression from
14c6ea539b9ee7b98d0c6b870c23202798ba37b3
Dmitry Gutov [Sat, 22 Sep 2012 04:00:18 +0000 (08:00 +0400)]
Don't need `funcall` where FUNCTION is constant
Dmitry Gutov [Wed, 12 Sep 2012 01:33:59 +0000 (05:33 +0400)]
Remove run-mode-hooks call, define-derived-mode already does that
Dmitry Gutov [Tue, 11 Sep 2012 02:03:10 +0000 (06:03 +0400)]
you -> your
Dmitry Gutov [Tue, 11 Sep 2012 02:03:10 +0000 (06:03 +0400)]
you -> your
Dmitry Gutov [Tue, 11 Sep 2012 01:59:45 +0000 (05:59 +0400)]
Move "the" outside the link
Dmitry Gutov [Tue, 11 Sep 2012 01:58:19 +0000 (05:58 +0400)]
Add section "Emacs 22 and 23"
Dmitry Gutov [Tue, 11 Sep 2012 01:54:25 +0000 (05:54 +0400)]
Add section "Emacs 24"
Dmitry Gutov [Tue, 11 Sep 2012 01:13:30 +0000 (05:13 +0400)]
Tweak `js2-line-break` behavior, bind it to M-j
js2-indent-on-enter-key, js2-enter-indents-newline: Remove.
js2-line-break: Always indent the line.
js2-mode-split-string: Use js2-indent-line. Remove the variable quote-string.
js2-mode-extend-comment: Support block comments at the end of the line.
Delete whitespace around the newline. Always indent the line.
Dmitry Gutov [Mon, 10 Sep 2012 03:40:44 +0000 (07:40 +0400)]
Merge branch 'master' into emacs24
Dmitry Gutov [Sat, 8 Sep 2012 16:06:49 +0000 (20:06 +0400)]
Fix #66
Dmitry Gutov [Tue, 4 Sep 2012 01:15:54 +0000 (05:15 +0400)]
Merge branch 'master' into emacs24
Dmitry Gutov [Mon, 3 Sep 2012 22:42:57 +0000 (02:42 +0400)]
Fix #63
Dmitry Gutov [Mon, 3 Sep 2012 03:15:54 +0000 (07:15 +0400)]
Merge branch 'master' into emacs24
Dmitry Gutov [Sun, 2 Sep 2012 22:29:44 +0000 (02:29 +0400)]
Fix infinite timers loop
Refs #49
Dmitry Gutov [Sun, 2 Sep 2012 22:03:16 +0000 (02:03 +0400)]
js2-mode-forward-sexp: When inside "parens", jump over closest child node
Dmitry Gutov [Sun, 2 Sep 2012 18:22:32 +0000 (22:22 +0400)]
js2-mode-forward-sexp-parens: if/else and loop bodies are js2-scope nodes
Dmitry Gutov [Fri, 31 Aug 2012 04:18:35 +0000 (08:18 +0400)]
Merge branch 'master' into emacs24
Dmitry Gutov [Fri, 31 Aug 2012 03:39:17 +0000 (07:39 +0400)]
js2-mode-forward-sexp: Signal scan-error when start == rp
Dmitry Gutov [Wed, 29 Aug 2012 19:33:52 +0000 (23:33 +0400)]
js2-mode-forward-sexp: backtrack before signaling scan-error
* Jump past the semicolon when current node's parent is expr-stmt-node.
Dmitry Gutov [Wed, 29 Aug 2012 17:24:47 +0000 (21:24 +0400)]
js2-mode-forward-sexp: Behave more similarly to `forward-sexp'
* Stop at node parens
* Signal scan-error upon reaching a parenthesized expression boundary
* If the buffer is dirty, reparse it synchronously
This increases compatibility with standard *-list commands, evil-mode paren
motions, and blink-matching-paren feature.
Close #56
Close #44
js2-node-rp: Fix for js2-elem-get-node.
Dmitry Gutov [Fri, 13 Jul 2012 03:43:38 +0000 (07:43 +0400)]
Fix #58
Dmitry Gutov [Fri, 6 Jul 2012 00:22:25 +0000 (04:22 +0400)]
Merge branch 'master' into emacs24
Dmitry Gutov [Fri, 6 Jul 2012 00:21:19 +0000 (04:21 +0400)]
Fix #57
Dmitry Gutov [Sun, 17 Jun 2012 08:39:19 +0000 (12:39 +0400)]
Merge branch 'master' into emacs24
Conflicts:
js2-mode.el
Dmitry Gutov [Sun, 17 Jun 2012 08:33:25 +0000 (12:33 +0400)]
Make some lines tighter
Dmitry Gutov [Sun, 17 Jun 2012 08:13:48 +0000 (12:13 +0400)]
Fix comment
Dmitry Gutov [Sun, 17 Jun 2012 07:42:41 +0000 (11:42 +0400)]
Parse rest parameter
Closes #51
Dmitry Gutov [Sun, 17 Jun 2012 06:16:14 +0000 (10:16 +0400)]
Parse default parameters
Closes #50
Dmitry Gutov [Sun, 17 Jun 2012 04:19:43 +0000 (08:19 +0400)]
Simplify `js2-test-ast-string'
Dmitry Gutov [Sun, 17 Jun 2012 04:10:54 +0000 (08:10 +0400)]
Set js2-basic-offset in tests explicitly
Dmitry Gutov [Sun, 17 Jun 2012 04:00:30 +0000 (08:00 +0400)]
Print space after colon in prop nodes
Dmitry Gutov [Sun, 17 Jun 2012 03:59:02 +0000 (07:59 +0400)]
Fix catch param with destructuring binding
Dmitry Gutov [Sun, 17 Jun 2012 03:54:39 +0000 (07:54 +0400)]
Rename js2-is-in-lhs -> js2-is-in-destructuring (like in Rhino)
* Edit comments.
* Add some tests.
Dmitry Gutov [Fri, 15 Jun 2012 18:45:12 +0000 (22:45 +0400)]
Add test Makefile target
Dmitry Gutov [Thu, 14 Jun 2012 13:03:06 +0000 (17:03 +0400)]
Make 'of' contextual keyword
Refs #53
Dmitry Gutov [Thu, 14 Jun 2012 11:43:49 +0000 (15:43 +0400)]
Fix parsing of keyword property names
Closes #54
Also prohibit keyword identifiers in array comp loops
Dmitry Gutov [Wed, 13 Jun 2012 04:37:45 +0000 (08:37 +0400)]
Support for..of in loops and array comprehensions
Refs #53
Dmitry Gutov [Mon, 11 Jun 2012 08:18:25 +0000 (12:18 +0400)]
Merge branch 'master' into emacs24
Francois-Xavier Kowalski [Mon, 11 Jun 2012 08:07:01 +0000 (12:07 +0400)]
Add Makefile for byte compiling
Dmitry Gutov [Mon, 11 Jun 2012 07:10:57 +0000 (11:10 +0400)]
Fix built-in properties highlighting
Matthew Noorenberghe [Sun, 10 Jun 2012 20:25:51 +0000 (13:25 -0700)]
Add ECMA-262 JSON object
Dmitry Gutov [Tue, 1 May 2012 23:49:10 +0000 (03:49 +0400)]
Reduce the indentation variables count
* Remove `js2-consistent-level-indent-inner-bracket-p` (assume it's always t).
* Merge `js2-pretty-multiline-decl-indentation-p` and
`js2-always-indent-assigned-expr-in-decls-p` into one as
`js2-pretty-multiline-declarations`.
* Make the description more clear.
Conflicts:
js2-mode.el: `js2-multiline-decl-indentation` docstring
Dmitry Gutov [Tue, 5 Jun 2012 23:13:42 +0000 (03:13 +0400)]
Make `js2-parse-primary-expr-lhs` a defun
Closes #43
Dmitry Gutov [Tue, 5 Jun 2012 23:12:42 +0000 (03:12 +0400)]
Use consistent package prefix for all vars
Dmitry Gutov [Sun, 3 Jun 2012 23:54:01 +0000 (03:54 +0400)]
Bring back js2-external-variable face
Being able to distinguish this type of warning from others is kinda useful.
Might also use overriding for new types of warnings later, like unused vars.
Dmitry Gutov [Sun, 3 Jun 2012 23:35:57 +0000 (03:35 +0400)]
Wrap all `js2-post-parse-callbacks` calls in (save-excursion)
Dmitry Gutov [Sun, 3 Jun 2012 17:37:23 +0000 (21:37 +0400)]
Merge branch 'master' into emacs24
Conflicts:
js2-mode.el
Dmitry Gutov [Sun, 3 Jun 2012 16:05:19 +0000 (20:05 +0400)]
Forgot a single quote
Dmitry Gutov [Sun, 3 Jun 2012 02:16:29 +0000 (06:16 +0400)]
js2-imenu-extras: Fix usage example
Dmitry Gutov [Sun, 3 Jun 2012 02:11:27 +0000 (06:11 +0400)]
Merge branch 'imenu'
Dmitry Gutov [Sun, 3 Jun 2012 02:09:14 +0000 (06:09 +0400)]
Fix recorded module function node position
Dmitry Gutov [Sun, 3 Jun 2012 01:29:55 +0000 (05:29 +0400)]
Add comments
Dmitry Gutov [Sun, 3 Jun 2012 00:48:12 +0000 (04:48 +0400)]
Move module pattern support to `js2-imenu-extras`
Dmitry Gutov [Wed, 23 May 2012 17:03:15 +0000 (10:03 -0700)]
Merge pull request #48 from lewang/master
Le Wang [Wed, 23 May 2012 15:17:41 +0000 (23:17 +0800)]
remove duplicate js2-strict-cond-assign-warning
Dmitry Gutov [Sat, 19 May 2012 12:18:27 +0000 (16:18 +0400)]
Remove leftover accumulator; require js2-mode
Dmitry Gutov [Thu, 17 May 2012 20:20:45 +0000 (00:20 +0400)]
(js2-imenu-record-hashes): Don't walk the node when `end-p`
Dmitry Gutov [Thu, 17 May 2012 19:48:43 +0000 (23:48 +0400)]
Implement imenu support for some frameworks and orphan functions
Refs #27
Refs #38
Dmitry Gutov [Thu, 17 May 2012 19:47:55 +0000 (23:47 +0400)]
Support chains with string elements in `js2-imenu-recorder`
Dmitry Gutov [Mon, 14 May 2012 20:38:26 +0000 (00:38 +0400)]
Customize the position of '+' for concatenation
Refs #23
katspaugh [Sun, 13 May 2012 10:08:26 +0000 (14:08 +0400)]
make multiline string concatenation optional
Dmitry Gutov [Sun, 13 May 2012 03:34:48 +0000 (07:34 +0400)]
Fix typo
Dmitry Gutov [Sun, 13 May 2012 02:15:11 +0000 (06:15 +0400)]
Basic support for module pattern
Dmitry Gutov [Thu, 10 May 2012 01:17:33 +0000 (05:17 +0400)]
Fix #46
* Check if "for" is inside comment
* Don't indent array comprehensions when language version < 1.7
Dmitry Gutov [Tue, 1 May 2012 23:49:10 +0000 (03:49 +0400)]
Reduce the indentation variables count
* Remove `js2-consistent-level-indent-inner-bracket-p` (assume it's always t).
* Merge `js2-pretty-multiline-decl-indentation-p` and
`js2-always-indent-assigned-expr-in-decls-p` into one as
`js2-pretty-multiline-declarations`.
* Make the description more clear.
Steve Yegge [Wed, 2 May 2012 00:12:16 +0000 (04:12 +0400)]
(js2-display-error-list): make the buffer navigable
Steve Yegge [Wed, 2 May 2012 00:06:33 +0000 (04:06 +0400)]
(js2-echo-error): ignore when help-echo property is not a string
Steve Yegge [Wed, 2 May 2012 00:04:41 +0000 (04:04 +0400)]
Add message table entry for undeclared vars
Dmitry Gutov [Mon, 30 Apr 2012 06:32:17 +0000 (10:32 +0400)]
Don't need to clear next-error-function in `js2-mode-exit`
Major mode change kills all local variables anyway
Dmitry Gutov [Mon, 30 Apr 2012 06:22:12 +0000 (10:22 +0400)]
Make `js2-highlight-level` buffer-local in minor mode
Dmitry Gutov [Mon, 30 Apr 2012 06:20:27 +0000 (10:20 +0400)]
Set next-error-function in major mode, too
Dmitry Gutov [Mon, 30 Apr 2012 06:09:31 +0000 (10:09 +0400)]
Warn about undeclared variables in the generic way
This way they show up in the warnings list, so they can be jumped between with
`next-error', and are visible in `js2-minor-mode'.
Highlighting and underline together look gaudy. Do something more complex?
Dmitry Gutov [Mon, 30 Apr 2012 03:41:32 +0000 (07:41 +0400)]
Add autoload cookie for js2-minor-mode
Dmitry Gutov [Fri, 20 Apr 2012 04:51:49 +0000 (08:51 +0400)]
js2-print-array-comp-node: plus 'each', minus extra closing paren
Dmitry Gutov [Fri, 20 Apr 2012 04:44:11 +0000 (08:44 +0400)]
js2-print-var-decl: handle the 'let' case the same as others
Dmitry Gutov [Fri, 20 Apr 2012 04:41:22 +0000 (08:41 +0400)]
js2-print-list: accept that some elements may be nil
let [a,,c] = [1, 2, 3];
Dmitry Gutov [Fri, 20 Apr 2012 02:47:53 +0000 (06:47 +0400)]
Apply sensible changes from GNU ELPA repository
* Remove `js2-function-param-node-p', it was unused.
* Change mode title in the header.
* Remove '-face' suffix from faces, the manual says that's redundant.
Dmitry Gutov [Fri, 20 Apr 2012 01:54:44 +0000 (05:54 +0400)]
Reapply the fix from 83ba85
Steve Yegge [Fri, 20 Apr 2012 01:28:36 +0000 (05:28 +0400)]
Make the mode a better Emacs citizen
New features:
* Introduce `js2-minor-mode', to run parser with another major mode active.
* Add `js2-display-error-list'.
Breaking changes:
* Emacs 24 only.
* Don't set up mode association automatically for *.js files.
* Get rid of the mirror-mode (use electric-pair-mode).
* Get rid of the auto-indent code (use electric-indent-mode).
* Get rid of the js2-rebind-eol-bol-keys.
* Don't rebind RET. Use M-j to extend comments.
* Don't bind `js2-mark-defun' and `js2-narrow-to-defun'.
Other changes:
* Derive from `prog-mode'.
* Improve documentation style.
* Consistently use 'js2-' prefix.
* Replace `defsubst' with `defun' is many cases.
* Don't use `save-match-data' unless required (which is currently never).
Incorporates a patch by Stefan Monnier.
Dmitry Gutov [Thu, 19 Apr 2012 03:24:00 +0000 (07:24 +0400)]
Merge remote-tracking branch 'origin/master'
Dmitry Gutov [Thu, 19 Apr 2012 03:15:33 +0000 (07:15 +0400)]
Only change window-configuration-change-hook's local value
Dmitry Gutov [Mon, 16 Apr 2012 01:13:37 +0000 (05:13 +0400)]
Guess more carefully when indenting array comprehension
Fixes #42
Masafumi Oyamada [Thu, 8 Mar 2012 04:35:14 +0000 (20:35 -0800)]
Merge pull request #37 from eentzel/master
Consider foo.bar to be a single parameter name in jsdoc comments
Eric Entzel [Thu, 8 Mar 2012 00:45:03 +0000 (11:45 +1100)]
Consider foo.bar to be a single parameter name in jsdoc comments