]>
code.delx.au - gnu-emacs-elpa/log
Dmitry Gutov [Mon, 8 Sep 2014 19:42:33 +0000 (23:42 +0400)]
js2-parse-let: Simplify
kaki [Mon, 8 Sep 2014 14:27:45 +0000 (23:27 +0900)]
Fix parsing of let expressions
Dmitry Gutov [Mon, 4 Aug 2014 03:31:02 +0000 (07:31 +0400)]
Allow 'in' operator inside 'for' init when unambiguous
Fixes #155
Dmitry Gutov [Mon, 4 Aug 2014 01:25:51 +0000 (05:25 +0400)]
Ignore integer overflow
Fixes #154
Dmitry Gutov [Wed, 16 Jul 2014 01:17:39 +0000 (04:17 +0300)]
Small tweak
Dmitry Gutov [Wed, 16 Jul 2014 01:17:29 +0000 (04:17 +0300)]
Add js2-language-version checks
Dmitry Gutov [Wed, 16 Jul 2014 01:13:17 +0000 (04:13 +0300)]
Support ES6 number literals
Closes #151
Dmitry Gutov [Wed, 9 Jul 2014 23:26:57 +0000 (02:26 +0300)]
js2-get-token-internal-1: add a FIXME
Dmitry Gutov [Wed, 9 Jul 2014 17:08:11 +0000 (20:08 +0300)]
js2-read-unicode-escape: use a stricter regexp
Dmitry Gutov [Wed, 9 Jul 2014 16:45:34 +0000 (19:45 +0300)]
Better docstrings
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
Le Wang [Thu, 10 Jul 2014 14:43:16 +0000 (10:43 -0400)]
Check if buffer is alive before reparsing.
Gerard Paapu [Wed, 9 Jul 2014 13:09:25 +0000 (16:09 +0300)]
Support Unicode Identifiers
(tiny change)
Closes #148
Dmitry Gutov [Wed, 9 Jul 2014 03:53:35 +0000 (06:53 +0300)]
Add Contributing section
Dmitry Gutov [Wed, 9 Jul 2014 03:29:15 +0000 (06:29 +0300)]
Support ES6 generator comprehensions
Fixes #145
Dmitry Gutov [Tue, 8 Jul 2014 20:13:51 +0000 (23:13 +0300)]
Support ES6 array comprehensions
Dmitry Gutov [Wed, 2 Jul 2014 15:10:32 +0000 (18:10 +0300)]
Add `.' to electric-indent-chars for method continuations
#146
Dmitry Gutov [Wed, 4 Jun 2014 01:18:31 +0000 (04:18 +0300)]
Support yield*
#139
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
Dmitry Gutov [Wed, 21 May 2014 00:55:14 +0000 (03:55 +0300)]
Rename mention of espresso-mode to js-mode
Dmitry Gutov [Sun, 6 Apr 2014 03:55:21 +0000 (06:55 +0300)]
Fix parsing of function statements in blocks
Dmitry Gutov [Sun, 6 Apr 2014 03:26:54 +0000 (06:26 +0300)]
Cut down on reserved words; improve error reporting
Closes #100
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
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.
Dmitry Gutov [Sun, 9 Mar 2014 07:07:27 +0000 (09:07 +0200)]
Try to improve formatting
Dmitry Gutov [Sun, 9 Mar 2014 07:05:25 +0000 (09:05 +0200)]
Reference #72 in the README
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
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.
Dmitry Gutov [Tue, 14 Jan 2014 02:03:39 +0000 (04:03 +0200)]
Add .gitignore
Dmitry Gutov [Tue, 14 Jan 2014 01:54:14 +0000 (03:54 +0200)]
Update copyright years, bump the version
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
Dmitry Gutov [Sat, 11 Jan 2014 23:45:38 +0000 (03:45 +0400)]
Fontify function calls
Closes #128
Dmitry Gutov [Sun, 22 Dec 2013 03:08:13 +0000 (05:08 +0200)]
Fix #127
Dmitry Gutov [Thu, 19 Dec 2013 14:58:38 +0000 (16:58 +0200)]
Rename the new functions and rewrite the comments
Chen Bin [Wed, 18 Dec 2013 10:04:50 +0000 (21:04 +1100)]
imenu hint for orphan function
Dmitry Gutov [Mon, 18 Nov 2013 23:16:20 +0000 (01:16 +0200)]
New option: js2-imenu-split-string-identifiers
#123
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
Dmitry Gutov [Mon, 18 Nov 2013 10:30:51 +0000 (12:30 +0200)]
Support Enyo in IMenu
Closes #123
Stefan Monnier [Fri, 8 Nov 2013 00:24:27 +0000 (02:24 +0200)]
* js2-mode/tests: Add copyright headers
Dmitry Gutov [Wed, 6 Nov 2013 01:33:50 +0000 (03:33 +0200)]
Bump the version
Dmitry Gutov [Wed, 6 Nov 2013 01:27:02 +0000 (03:27 +0200)]
Support Harmony spread operator, in arrays and calls
Closes #121
Dmitry Gutov [Sun, 3 Nov 2013 03:09:51 +0000 (07:09 +0400)]
Support Harmony generators (closes #119)
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
Dmitry Gutov [Sun, 13 Oct 2013 03:09:10 +0000 (06:09 +0300)]
Fix #116
Dmitry Gutov [Sun, 13 Oct 2013 02:53:34 +0000 (05:53 +0300)]
Add small clarification
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
Dmitry Gutov [Sun, 13 Oct 2013 01:21:51 +0000 (04:21 +0300)]
(Hopefully) fix #117 and capitaomorte/autopair#21
Dmitry Gutov [Tue, 8 Oct 2013 12:47:25 +0000 (15:47 +0300)]
pn was indeed unused
Dmitry Gutov [Tue, 8 Oct 2013 12:46:16 +0000 (15:46 +0300)]
Merge branch 'arrow-functions'
Conflicts:
js2-mode.el
Dmitry Gutov [Tue, 8 Oct 2013 01:50:48 +0000 (04:50 +0300)]
Check in .dir-locals.el
Dmitry Gutov [Tue, 24 Sep 2013 10:41:21 +0000 (13:41 +0300)]
js2-parse-switch: Fix the docstring
Dmitry Gutov [Fri, 20 Sep 2013 01:29:17 +0000 (04:29 +0300)]
Fix #114
Dmitry Gutov [Fri, 13 Sep 2013 03:26:35 +0000 (06:26 +0300)]
New option: js2-indent-switch-body
Closes #111
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.
Dmitry Gutov [Mon, 2 Sep 2013 13:59:13 +0000 (16:59 +0300)]
Fix (and rename) the ts-set-state test
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
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.
Dmitry Gutov [Sun, 1 Sep 2013 04:20:10 +0000 (07:20 +0300)]
Implement "save & restore" for token stream
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'.
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.
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.
Dmitry Gutov [Sat, 31 Aug 2013 21:31:17 +0000 (00:31 +0300)]
Remove the "mentioned here" bit, to make text more universal
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
Dmitry Gutov [Wed, 24 Jul 2013 20:19:49 +0000 (23:19 +0300)]
Update `js2-concat-multiline-strings' docstring
#107
Dmitry Gutov [Wed, 19 Jun 2013 07:23:57 +0000 (11:23 +0400)]
Bump the version
Dmitry Gutov [Wed, 19 Jun 2013 07:08:13 +0000 (11:08 +0400)]
js2-next-error: Always echo error text
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.
Dmitry Gutov [Sat, 8 Jun 2013 09:19:36 +0000 (13:19 +0400)]
Introduce js2-init-hook
Fixing #20 (again) in a different way
Dmitry Gutov [Sat, 11 May 2013 08:02:02 +0000 (12:02 +0400)]
Set up Travis CI
Dmitry Gutov [Fri, 10 May 2013 16:00:04 +0000 (20:00 +0400)]
Description -> About
Dmitry Gutov [Fri, 10 May 2013 15:55:41 +0000 (19:55 +0400)]
Alternat{->iv}ely
Dmitry Gutov [Fri, 10 May 2013 15:54:45 +0000 (19:54 +0400)]
Fix #102
Dmitry Gutov [Fri, 10 May 2013 15:32:09 +0000 (19:32 +0400)]
Prefix all tests with "js2-"
Dmitry Gutov [Fri, 10 May 2013 15:28:53 +0000 (19:28 +0400)]
Include tests/externs.el in the test target
Dmitry Gutov [Fri, 10 May 2013 15:20:11 +0000 (19:20 +0400)]
Bump the version date
Dmitry Gutov [Fri, 10 May 2013 13:42:01 +0000 (17:42 +0400)]
Fix #104
Dmitry Gutov [Fri, 10 May 2013 12:30:40 +0000 (16:30 +0400)]
js2-auto-insert-catch-block: Unused, remove
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.
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
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
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
Kyle Hargraves [Wed, 1 May 2013 03:37:59 +0000 (20:37 -0700)]
Add js2-typed-array-externs, js2-set-default-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
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
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>
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>
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>
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.
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>
Dmitry Gutov [Thu, 7 Mar 2013 16:12:12 +0000 (20:12 +0400)]
* js2-multiline-decl-indentation: Simplify a logical condition
Dmitry Gutov [Thu, 7 Mar 2013 02:22:39 +0000 (06:22 +0400)]
emacs -l doesn't handle wilcards
Dmitry Gutov [Thu, 7 Mar 2013 02:19:16 +0000 (06:19 +0400)]
Update Makefile
Dmitry Gutov [Thu, 7 Mar 2013 02:15:18 +0000 (06:15 +0400)]
Fix #89
Dmitry Gutov [Thu, 7 Mar 2013 02:09:18 +0000 (06:09 +0400)]
Add some indentation tests
Dmitry Gutov [Thu, 7 Mar 2013 01:33:33 +0000 (05:33 +0400)]
tests{ast -> parser}.el
Dmitry Gutov [Thu, 28 Feb 2013 07:38:33 +0000 (11:38 +0400)]
* js2-mode-forward-sexp: never jump over an unbalanced paren
Fixes #78
Dmitry Gutov [Wed, 27 Feb 2013 21:02:16 +0000 (01:02 +0400)]
Fix js2-node-[lr]p for js2-paren-node
Dmitry Gutov [Tue, 26 Feb 2013 23:19:58 +0000 (03:19 +0400)]
Remove some of the unused definitions
Dmitry Gutov [Tue, 26 Feb 2013 21:36:30 +0000 (01:36 +0400)]
Fix #87
Dmitry Gutov [Tue, 26 Feb 2013 20:00:03 +0000 (00:00 +0400)]
js2-insert-and-indent was unused