]> code.delx.au - gnu-emacs-elpa/log
gnu-emacs-elpa
9 years agoSupport object destructuring inside arrow function args
Dmitry Gutov [Wed, 5 Nov 2014 09:45:15 +0000 (11:45 +0200)]
Support object destructuring inside arrow function args

* js2-mode.el (js2-parse-plain-property): Don't move too far when
there's no colon.
(js2-parse-assign-expr): Restore the previous value of
`js2-parsed-errors' after arrow token is found.

Fixes #167

9 years agoIndent before inequality operator at bol
Dmitry Gutov [Wed, 5 Nov 2014 08:41:53 +0000 (10:41 +0200)]
Indent before inequality operator at bol

Fixes #174

9 years agoMerge pull request #173 from lelit/master
Dmitry Gutov [Sat, 1 Nov 2014 20:05:25 +0000 (23:05 +0300)]
Merge pull request #173 from lelit/master

Add imenu support for the Sencha framework

9 years agoAdd imenu support for the Sencha framework
Lele Gaifax [Sat, 1 Nov 2014 19:34:15 +0000 (20:34 +0100)]
Add imenu support for the Sencha framework

This implements issue #172.

9 years agojs2-parse-primary-expr: Make some vars "more" local
Dmitry Gutov [Sat, 1 Nov 2014 11:55:51 +0000 (14:55 +0300)]
js2-parse-primary-expr: Make some vars "more" local

9 years agoFix #171
Dmitry Gutov [Sat, 1 Nov 2014 11:47:01 +0000 (14:47 +0300)]
Fix #171

* js2-mode.el (js2-parse-primary-expr): Use
`js2-current-token-end' to retrieve the end of the current token.
This works better if parsing errored on EOF.
(js2-read-regexp): Don't try to set `syntax-table' property (it
didn't work anyway, `syntax-class' is bogus).

9 years agojs2-mode-find-enclosing-node: Make docstring and impl consistent with name
Leo Liu [Fri, 31 Oct 2014 01:07:16 +0000 (04:07 +0300)]
js2-mode-find-enclosing-node: Make docstring and impl consistent with name

Closes #170

9 years agojs2-imenu-extras.el: Use Unix-style EOL
Stefan Monnier [Sat, 18 Oct 2014 19:05:22 +0000 (02:05 +0700)]
js2-imenu-extras.el: Use Unix-style EOL

9 years agoFontify negation operator
Dmitry Gutov [Sat, 18 Oct 2014 18:35:40 +0000 (01:35 +0700)]
Fontify negation operator

Closes #168

9 years agojs2-parse-let: Simplify
Dmitry Gutov [Mon, 8 Sep 2014 19:42:33 +0000 (23:42 +0400)]
js2-parse-let: Simplify

9 years agoFix parsing of let expressions
kaki [Mon, 8 Sep 2014 14:27:45 +0000 (23:27 +0900)]
Fix parsing of let expressions

9 years agoAllow 'in' operator inside 'for' init when unambiguous
Dmitry Gutov [Mon, 4 Aug 2014 03:31:02 +0000 (07:31 +0400)]
Allow 'in' operator inside 'for' init when unambiguous

Fixes #155

9 years agoIgnore integer overflow
Dmitry Gutov [Mon, 4 Aug 2014 01:25:51 +0000 (05:25 +0400)]
Ignore integer overflow

Fixes #154

9 years agoSmall tweak
Dmitry Gutov [Wed, 16 Jul 2014 01:17:39 +0000 (04:17 +0300)]
Small tweak

9 years agoAdd js2-language-version checks
Dmitry Gutov [Wed, 16 Jul 2014 01:17:29 +0000 (04:17 +0300)]
Add js2-language-version checks

9 years agoSupport ES6 number literals
Dmitry Gutov [Wed, 16 Jul 2014 01:13:17 +0000 (04:13 +0300)]
Support ES6 number literals

Closes #151

9 years agojs2-get-token-internal-1: add a FIXME
Dmitry Gutov [Wed, 9 Jul 2014 23:26:57 +0000 (02:26 +0300)]
js2-get-token-internal-1: add a FIXME

9 years agojs2-read-unicode-escape: use a stricter regexp
Dmitry Gutov [Wed, 9 Jul 2014 17:08:11 +0000 (20:08 +0300)]
js2-read-unicode-escape: use a stricter regexp

9 years agoBetter docstrings
Dmitry Gutov [Wed, 9 Jul 2014 16:45:34 +0000 (19:45 +0300)]
Better docstrings

9 years agoMerge pull request #149 from lewang/dont-parse-killed-buffer
Dmitry Gutov [Thu, 10 Jul 2014 15:00:22 +0000 (18:00 +0300)]
Merge pull request #149 from lewang/dont-parse-killed-buffer

Check if buffer is alive before reparsing

9 years agoCheck if buffer is alive before reparsing.
Le Wang [Thu, 10 Jul 2014 14:43:16 +0000 (10:43 -0400)]
Check if buffer is alive before reparsing.

9 years agoSupport Unicode Identifiers
Gerard Paapu [Wed, 9 Jul 2014 13:09:25 +0000 (16:09 +0300)]
Support Unicode Identifiers

(tiny change)

Closes #148

9 years agoAdd Contributing section
Dmitry Gutov [Wed, 9 Jul 2014 03:53:35 +0000 (06:53 +0300)]
Add Contributing section

9 years agoSupport ES6 generator comprehensions
Dmitry Gutov [Wed, 9 Jul 2014 03:29:15 +0000 (06:29 +0300)]
Support ES6 generator comprehensions

Fixes #145

9 years agoSupport ES6 array comprehensions
Dmitry Gutov [Tue, 8 Jul 2014 20:13:51 +0000 (23:13 +0300)]
Support ES6 array comprehensions

9 years agoAdd `.' to electric-indent-chars for method continuations
Dmitry Gutov [Wed, 2 Jul 2014 15:10:32 +0000 (18:10 +0300)]
Add `.' to electric-indent-chars for method continuations

#146

10 years agoSupport yield*
Dmitry Gutov [Wed, 4 Jun 2014 01:18:31 +0000 (04:18 +0300)]
Support yield*

#139

10 years agojs2-parse-array-literal: improve trailing comma warning
Dmitry Gutov [Wed, 21 May 2014 01:02:22 +0000 (04:02 +0300)]
js2-parse-array-literal: improve trailing comma warning

* Only warn when language version is < 1.7.
* Handle nil elements.

Fixes #142

10 years agoRename mention of espresso-mode to js-mode
Dmitry Gutov [Wed, 21 May 2014 00:55:14 +0000 (03:55 +0300)]
Rename mention of espresso-mode to js-mode

10 years agoFix parsing of function statements in blocks
Dmitry Gutov [Sun, 6 Apr 2014 03:55:21 +0000 (06:55 +0300)]
Fix parsing of function statements in blocks

10 years agoCut down on reserved words; improve error reporting
Dmitry Gutov [Sun, 6 Apr 2014 03:26:54 +0000 (06:26 +0300)]
Cut down on reserved words; improve error reporting

Closes #100

10 years agoMerge pull request #138 from martinp/fix-electric-indent
Dmitry Gutov [Wed, 26 Mar 2014 11:20:29 +0000 (13:20 +0200)]
Merge pull request #138 from martinp/fix-electric-indent

Fix electric-indent-mode

10 years agoFix electric-indent-mode
Martin Polden [Wed, 26 Mar 2014 09:58:06 +0000 (10:58 +0100)]
Fix electric-indent-mode

Make electric-indent-mode work as intended by setting
electric-indent-chars correctly.

10 years agoTry to improve formatting
Dmitry Gutov [Sun, 9 Mar 2014 07:07:27 +0000 (09:07 +0200)]
Try to improve formatting

10 years agoReference #72 in the README
Dmitry Gutov [Sun, 9 Mar 2014 07:05:25 +0000 (09:05 +0200)]
Reference #72 in the README

10 years agoMerge pull request #133 from johnmastro/imenu-react
Dmitry Gutov [Tue, 21 Jan 2014 04:03:46 +0000 (20:03 -0800)]
Merge pull request #133 from johnmastro/imenu-react

Add support for React classes in js2-imenu-extras

10 years agoAdd support for React classes in js2-imenu-extras
John Mastro [Sun, 19 Jan 2014 20:29:17 +0000 (12:29 -0800)]
Add support for React classes in js2-imenu-extras

Reuse the recorder function already present for Backbone extends. Rename
that function to js2-imenu-record-backbone-or-react and define
js2-imenu-record-backbone-extend and js2-imenu-record-react-class as
aliases of it.

10 years agoAdd .gitignore
Dmitry Gutov [Tue, 14 Jan 2014 02:03:39 +0000 (04:03 +0200)]
Add .gitignore

10 years agoUpdate copyright years, bump the version
Dmitry Gutov [Tue, 14 Jan 2014 01:54:14 +0000 (03:54 +0200)]
Update copyright years, bump the version

10 years agoAlso highlight function names after new operator
Dmitry Gutov [Tue, 14 Jan 2014 01:52:27 +0000 (03:52 +0200)]
Also highlight function names after new operator

+ Only highlight name tokens, disregarding function objects accessed
via array-get, etc.

#128

10 years agoFontify function calls
Dmitry Gutov [Sat, 11 Jan 2014 23:45:38 +0000 (03:45 +0400)]
Fontify function calls

Closes #128

10 years agoFix #127
Dmitry Gutov [Sun, 22 Dec 2013 03:08:13 +0000 (05:08 +0200)]
Fix #127

10 years agoRename the new functions and rewrite the comments
Dmitry Gutov [Thu, 19 Dec 2013 14:58:38 +0000 (16:58 +0200)]
Rename the new functions and rewrite the comments

10 years agoimenu hint for orphan function
Chen Bin [Wed, 18 Dec 2013 10:04:50 +0000 (21:04 +1100)]
imenu hint for orphan function

10 years agoNew option: js2-imenu-split-string-identifiers
Dmitry Gutov [Mon, 18 Nov 2013 23:16:20 +0000 (01:16 +0200)]
New option: js2-imenu-split-string-identifiers

#123

10 years agojs2-re-search-forward-inner: Handle the case when string ends right after match
Dmitry Gutov [Mon, 18 Nov 2013 16:42:15 +0000 (18:42 +0200)]
js2-re-search-forward-inner: Handle the case when string ends right after match

Follow-up to #123

10 years agoSupport Enyo in IMenu
Dmitry Gutov [Mon, 18 Nov 2013 10:30:51 +0000 (12:30 +0200)]
Support Enyo in IMenu

Closes #123

10 years ago* js2-mode/tests: Add copyright headers
Stefan Monnier [Fri, 8 Nov 2013 00:24:27 +0000 (02:24 +0200)]
* js2-mode/tests: Add copyright headers

10 years agoBump the version
Dmitry Gutov [Wed, 6 Nov 2013 01:33:50 +0000 (03:33 +0200)]
Bump the version

10 years agoSupport Harmony spread operator, in arrays and calls
Dmitry Gutov [Wed, 6 Nov 2013 01:27:02 +0000 (03:27 +0200)]
Support Harmony spread operator, in arrays and calls

Closes #121

10 years agoSupport Harmony generators (closes #119)
Dmitry Gutov [Sun, 3 Nov 2013 03:09:51 +0000 (07:09 +0400)]
Support Harmony generators (closes #119)

10 years agoFix parsing labeled statements (and #120)
Dmitry Gutov [Fri, 18 Oct 2013 04:58:30 +0000 (08:58 +0400)]
Fix parsing labeled statements (and #120)

+ change labeled-stmt printer not to indent statements additionally

10 years agoFix #116
Dmitry Gutov [Sun, 13 Oct 2013 03:09:10 +0000 (06:09 +0300)]
Fix #116

10 years agoAdd small clarification
Dmitry Gutov [Sun, 13 Oct 2013 02:53:34 +0000 (05:53 +0300)]
Add small clarification

10 years agoInclude function's AST node in parent scope's symbol table entry
Dmitry Gutov [Sun, 13 Oct 2013 02:46:53 +0000 (05:46 +0300)]
Include function's AST node in parent scope's symbol table entry

Reported by Sergey Mogzovoy

10 years ago(Hopefully) fix #117 and capitaomorte/autopair#21
Dmitry Gutov [Sun, 13 Oct 2013 01:21:51 +0000 (04:21 +0300)]
(Hopefully) fix #117 and capitaomorte/autopair#21

10 years agopn was indeed unused
Dmitry Gutov [Tue, 8 Oct 2013 12:47:25 +0000 (15:47 +0300)]
pn was indeed unused

10 years agoMerge branch 'arrow-functions'
Dmitry Gutov [Tue, 8 Oct 2013 12:46:16 +0000 (15:46 +0300)]
Merge branch 'arrow-functions'

Conflicts:
js2-mode.el

10 years agoCheck in .dir-locals.el
Dmitry Gutov [Tue, 8 Oct 2013 01:50:48 +0000 (04:50 +0300)]
Check in .dir-locals.el

10 years agojs2-parse-switch: Fix the docstring
Dmitry Gutov [Tue, 24 Sep 2013 10:41:21 +0000 (13:41 +0300)]
js2-parse-switch: Fix the docstring

10 years agoFix #114
Dmitry Gutov [Fri, 20 Sep 2013 01:29:17 +0000 (04:29 +0300)]
Fix #114

10 years agoNew option: js2-indent-switch-body
Dmitry Gutov [Fri, 13 Sep 2013 03:26:35 +0000 (06:26 +0300)]
New option: js2-indent-switch-body

Closes #111

10 years ago* packages/js2-mode/js2-mode.el: Remove unused variables. Use posix
Stefan Monnier [Fri, 6 Sep 2013 02:47:32 +0000 (05:47 +0300)]
* packages/js2-mode/js2-mode.el: Remove unused variables.  Use posix
character classes.  Do a bit of CSE simplification.
(js2-parse-highlight-member-expr-node): Flip test order to simplify code.
(js2-re-search-forward, js2-re-search-backward): Don't quote code.
(js2-echo-help): Defalias applies to symbol, not functions.

10 years agoFix (and rename) the ts-set-state test
Dmitry Gutov [Mon, 2 Sep 2013 13:59:13 +0000 (16:59 +0300)]
Fix (and rename) the ts-set-state test

10 years agoSupport arrow functions (#108)
Dmitry Gutov [Mon, 2 Sep 2013 13:51:27 +0000 (16:51 +0300)]
Support arrow functions (#108)

Roughly along the lines of
https://hg.mozilla.org/mozilla-central/rev/bf3ce88c6ea3

10 years agoExtract js2-parse-function-stmt and js2-parse-function-expr
Dmitry Gutov [Sun, 1 Sep 2013 22:28:02 +0000 (01:28 +0300)]
Extract js2-parse-function-stmt and js2-parse-function-expr

* Fix printing of js2-function-nodes with member-expr.
* Prohibit unnamed function expressions where statement is expected.
* Omit the case of "random-member-expr", whatever that is.
  Anyone who misses it is welcome to file an issue.

10 years agoImplement "save & restore" for token stream
Dmitry Gutov [Sun, 1 Sep 2013 04:20:10 +0000 (07:20 +0300)]
Implement "save & restore" for token stream

10 years ago* js2-get-string-from-buffer: Rename, make it take token argument
Dmitry Gutov [Sun, 1 Sep 2013 03:33:24 +0000 (06:33 +0300)]
* js2-get-string-from-buffer: Rename, make it take token argument

* js2-collect-string: Simplify

* Having the global `js2-ts-string-buffer' var is still necessary,
  until `js2-add-to-string' is replaced with simple `push'.

10 years agojs2-record-face: Accept optional, second parameter
Dmitry Gutov [Sun, 1 Sep 2013 02:21:45 +0000 (05:21 +0300)]
js2-record-face: Accept optional, second parameter

No significant improvement in performance.

10 years agoImplement two-token lookahead
Dmitry Gutov [Thu, 29 Aug 2013 22:58:33 +0000 (01:58 +0300)]
Implement two-token lookahead

* Use `js2-token' defstruct to store token info.
* Cache tokens in a vector buffer `js2-ti-tokens'.
* Obviously, a deoptimization, gives us performance hit:
  - ~60% slower in interpreted mode (Emacs 24.3.50.1).
  - ~50% slower in compiled mode.
* `mod' is actually slightly faster than `logand' for our usage.
* Optimizations tried:
  - Cache the current token.
  - Cache the current token type.
  - Reuse the token structs, instead of creating new one each time.
  - Set the js2-token struct's type to `vector' or `list', disabling
    the usage of the tag symbol, and thus getting rid of type checking.
    Gives us ~15% improvement in interpreted mode, but no significant
    change in compiled mode.

10 years agoRemove the "mentioned here" bit, to make text more universal
Dmitry Gutov [Sat, 31 Aug 2013 21:31:17 +0000 (00:31 +0300)]
Remove the "mentioned here" bit, to make text more universal

10 years agoMake comment vars buffer-local
Dmitry Gutov [Wed, 24 Jul 2013 22:25:06 +0000 (01:25 +0300)]
Make comment vars buffer-local

Fixes http://code.google.com/p/js2-mode/issues/detail?id=129

10 years agoUpdate `js2-concat-multiline-strings' docstring
Dmitry Gutov [Wed, 24 Jul 2013 20:19:49 +0000 (23:19 +0300)]
Update `js2-concat-multiline-strings' docstring

#107

10 years agoBump the version
Dmitry Gutov [Wed, 19 Jun 2013 07:23:57 +0000 (11:23 +0400)]
Bump the version

10 years agojs2-next-error: Always echo error text
Dmitry Gutov [Wed, 19 Jun 2013 07:08:13 +0000 (11:08 +0400)]
js2-next-error: Always echo error text

10 years agoFix #106
Dmitry Gutov [Tue, 18 Jun 2013 21:19:25 +0000 (01:19 +0400)]
Fix #106

* Check for an active minibuffer.

* Don't compare with "Quit", we're only called on `point-entered', so
  that message should already be cleared anyway.

10 years agoIntroduce js2-init-hook
Dmitry Gutov [Sat, 8 Jun 2013 09:19:36 +0000 (13:19 +0400)]
Introduce js2-init-hook

Fixing #20 (again) in a different way

11 years agoSet up Travis CI
Dmitry Gutov [Sat, 11 May 2013 08:02:02 +0000 (12:02 +0400)]
Set up Travis CI

11 years agoDescription -> About
Dmitry Gutov [Fri, 10 May 2013 16:00:04 +0000 (20:00 +0400)]
Description -> About

11 years agoAlternat{->iv}ely
Dmitry Gutov [Fri, 10 May 2013 15:55:41 +0000 (19:55 +0400)]
Alternat{->iv}ely

11 years agoFix #102
Dmitry Gutov [Fri, 10 May 2013 15:54:45 +0000 (19:54 +0400)]
Fix #102

11 years agoPrefix all tests with "js2-"
Dmitry Gutov [Fri, 10 May 2013 15:32:09 +0000 (19:32 +0400)]
Prefix all tests with "js2-"

11 years agoInclude tests/externs.el in the test target
Dmitry Gutov [Fri, 10 May 2013 15:28:53 +0000 (19:28 +0400)]
Include tests/externs.el in the test target

11 years agoBump the version date
Dmitry Gutov [Fri, 10 May 2013 15:20:11 +0000 (19:20 +0400)]
Bump the version date

11 years agoFix #104
Dmitry Gutov [Fri, 10 May 2013 13:42:01 +0000 (17:42 +0400)]
Fix #104

11 years agojs2-auto-insert-catch-block: Unused, remove
Dmitry Gutov [Fri, 10 May 2013 12:30:40 +0000 (16:30 +0400)]
js2-auto-insert-catch-block: Unused, remove

11 years agojs2-imenu-extras: Define a minor mode
Dmitry Gutov [Fri, 10 May 2013 12:16:48 +0000 (16:16 +0400)]
js2-imenu-extras: Define a minor mode

js2-do-parse: Use `run-hooks' on `js2-post-parse-callbacks'.
js2-post-parse-callbacks: Use `add-hook'.

The old way to set up this should still work, too.

11 years agoMerge pull request #103 from johan/interpreter-mode-alist
Dmitry Gutov [Fri, 3 May 2013 07:04:33 +0000 (00:04 -0700)]
Merge pull request #103 from johan/interpreter-mode-alist

Also aid  "#! /usr/bin/env node" type auto major mode selection

11 years agoAlso aid "#! /usr/bin/env node" type auto major mode selection
Johan Sundström [Fri, 3 May 2013 06:59:27 +0000 (23:59 -0700)]
Also aid "#! /usr/bin/env node" type auto major mode selection

11 years agoMerge pull request #101 from pd/node-typed-arrays
Dmitry Gutov [Wed, 1 May 2013 04:47:28 +0000 (21:47 -0700)]
Merge pull request #101 from pd/node-typed-arrays

Add typed array externs

11 years agoAdd js2-typed-array-externs, js2-set-default-externs
Kyle Hargraves [Wed, 1 May 2013 03:37:59 +0000 (20:37 -0700)]
Add js2-typed-array-externs, js2-set-default-externs

11 years agoAdd typed array types to js2-node-externs
Kyle Hargraves [Tue, 30 Apr 2013 21:33:28 +0000 (14:33 -0700)]
Add typed array types to js2-node-externs

node.js has supported typed arrays since 0.6:

https://github.com/joyent/node/wiki/API-changes-between-v0.4-and-v0.6
https://github.com/joyent/node/issues/1322
https://github.com/joyent/node/commit/97b0000

11 years agoMerge pull request #95 from ruediger/typed-array-externs
Dmitry Gutov [Tue, 9 Apr 2013 16:23:01 +0000 (09:23 -0700)]
Merge pull request #95 from ruediger/typed-array-externs

Typed array externs and console object

11 years agoTyped Array: remove TypedArray and ArrayBufferView.
Rüdiger Sonderfeld [Tue, 9 Apr 2013 16:20:02 +0000 (18:20 +0200)]
Typed Array: remove TypedArray and ArrayBufferView.

They are just interfaces.

Signed-off-by: Rüdiger Sonderfeld <ruediger@c-plusplus.de>
11 years agoAdd console Object to browser externs.
Rüdiger Sonderfeld [Tue, 9 Apr 2013 14:51:59 +0000 (16:51 +0200)]
Add console Object to browser externs.

console is provided by at least Firefox and Chrome.

Signed-off-by: Rüdiger Sonderfeld <ruediger@c-plusplus.de>
11 years agoAdd Typed Array Spec Externs.
Rüdiger Sonderfeld [Tue, 9 Apr 2013 14:51:19 +0000 (16:51 +0200)]
Add Typed Array Spec Externs.

Signed-off-by: Rüdiger Sonderfeld <ruediger@c-plusplus.de>
11 years agoMerge pull request #93 from ruediger/use-asm
Dmitry Gutov [Thu, 4 Apr 2013 15:34:19 +0000 (08:34 -0700)]
Merge pull request #93 from ruediger/use-asm

Treat "use asm" as having side effects.

11 years agoTreat "use asm" as having side effects.
Rüdiger Sonderfeld [Thu, 4 Apr 2013 13:16:27 +0000 (15:16 +0200)]
Treat "use asm" as having side effects.

Support for asm.js.  Change in `js2-node-has-side-effects'.

Signed-off-by: Rüdiger Sonderfeld <ruediger@c-plusplus.de>
11 years ago* js2-multiline-decl-indentation: Simplify a logical condition
Dmitry Gutov [Thu, 7 Mar 2013 16:12:12 +0000 (20:12 +0400)]
* js2-multiline-decl-indentation: Simplify a logical condition

11 years agoemacs -l doesn't handle wilcards
Dmitry Gutov [Thu, 7 Mar 2013 02:22:39 +0000 (06:22 +0400)]
emacs -l doesn't handle wilcards