]> code.delx.au - gnu-emacs-elpa/log
gnu-emacs-elpa
13 years agoImprove documentation
Dmitry Gutov [Mon, 4 Apr 2011 18:09:12 +0000 (22:09 +0400)]
Improve documentation

Using `batch-byte-compile' function to make the command work under MS Windows.

13 years agoimenu: accept paren-free direct function call in `js2-anonymous-wrapper-fn-p'
mooz [Sat, 2 Apr 2011 03:49:37 +0000 (12:49 +0900)]
imenu: accept paren-free direct function call in `js2-anonymous-wrapper-fn-p'

// not supported before this commit
var a = function () {
    function bar() {
    }
}();

// supported
var b = (function () {
    function foo() {
    }
})();

13 years agoRefined code (Thanks dgutov)
mooz [Mon, 28 Mar 2011 15:03:51 +0000 (00:03 +0900)]
Refined code (Thanks dgutov)

https://github.com/mooz/js2-mode/commit/09a9e5e94c7175535e525d9f0645b1e4fc7bd404#commitcomment-318882

13 years agoRevert "don't use inner scope of `for` for iteration target."
mooz [Mon, 28 Mar 2011 15:00:25 +0000 (00:00 +0900)]
Revert "don't use inner scope of `for` for iteration target."

This reverts commit 09a9e5e94c7175535e525d9f0645b1e4fc7bd404.

13 years agodon't use inner scope of `for` for iteration target.
mooz [Mon, 28 Mar 2011 12:31:56 +0000 (21:31 +0900)]
don't use inner scope of `for` for iteration target.

13 years agogive correct scope for `for` statement
mooz [Mon, 28 Mar 2011 10:03:46 +0000 (19:03 +0900)]
give correct scope for `for` statement

13 years agoMerge branch 'bounce-indent' of https://github.com/dgutov/js2-mode into dgutov-bounce...
mooz [Mon, 28 Mar 2011 09:07:17 +0000 (18:07 +0900)]
Merge branch 'bounce-indent' of https://github.com/dgutov/js2-mode into dgutov-bounce-indent

13 years agobounce-indent: properly find the fourth likely point
Dmitry Gutov [Thu, 24 Mar 2011 15:28:28 +0000 (18:28 +0300)]
bounce-indent: properly find the fourth likely point

Properly find the fourth likely point even when the cursor is
not inside indentation.

13 years agoSort all bounce positions by indent size
Dmitry Gutov [Thu, 24 Mar 2011 15:26:55 +0000 (18:26 +0300)]
Sort all bounce positions by indent size

13 years agoAdd js2-indent-bounce-backwards
Dmitry Gutov [Wed, 23 Mar 2011 12:15:15 +0000 (15:15 +0300)]
Add js2-indent-bounce-backwards

13 years agoMake comment-* vars buffer-local
Dmitry Gutov [Tue, 22 Mar 2011 15:56:36 +0000 (18:56 +0300)]
Make comment-* vars buffer-local

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

13 years agoDeclare non-let symbols in current function or script, not block scope
Dmitry Gutov [Tue, 22 Mar 2011 13:21:54 +0000 (16:21 +0300)]
Declare non-let symbols in current function or script, not block scope

if (true) {
  function boo() {}
}

boo(); // declared

for (var i = 0; i < 4; ++i) { var j = i + 2; }

alert(i + ", " + j) // 4, 5

13 years agoFix 'Warning: Bug in js2-mode: it forgets to call 'run-mode-hooks''
Szymon Nowak [Mon, 14 Mar 2011 20:48:29 +0000 (21:48 +0100)]
Fix 'Warning: Bug in js2-mode: it forgets to call 'run-mode-hooks''

13 years ago`js2-imenu-fn-type-map' should be local to `js2-browse-postprocess-chains'
Dmitry Gutov [Sat, 26 Feb 2011 18:00:01 +0000 (21:00 +0300)]
`js2-imenu-fn-type-map' should be local to `js2-browse-postprocess-chains'

13 years agocorrected documentation of multi-line variable declaration
mooz [Mon, 21 Feb 2011 03:44:47 +0000 (12:44 +0900)]
corrected documentation of multi-line variable declaration

13 years agoprint catch clause correctly.
mooz [Sun, 20 Feb 2011 05:56:36 +0000 (14:56 +0900)]
print catch clause correctly.

13 years agoAccept destructuring form in catch clause
mooz [Sun, 20 Feb 2011 05:51:57 +0000 (14:51 +0900)]
Accept destructuring form in catch clause

13 years agoFix js2-nested-function-p for when node is `js2-ast-root'
Dmitry Gutov [Sun, 20 Feb 2011 00:30:40 +0000 (03:30 +0300)]
Fix js2-nested-function-p for when node is `js2-ast-root'

13 years agoDetect anonymous wrapper functions more reliably
Dmitry Gutov [Sat, 19 Feb 2011 21:08:33 +0000 (00:08 +0300)]
Detect anonymous wrapper functions more reliably

13 years agoDeclare exception symbol in the catch block
Dmitry Gutov [Fri, 18 Feb 2011 21:05:37 +0000 (00:05 +0300)]
Declare exception symbol in the catch block

13 years agoFix byte-compile warnings
Dmitry Gutov [Fri, 18 Feb 2011 19:35:03 +0000 (22:35 +0300)]
Fix byte-compile warnings

13 years agoDefer removing syntax-table text property until parsing is done
Dmitry Gutov [Fri, 18 Feb 2011 18:46:22 +0000 (21:46 +0300)]
Defer removing syntax-table text property until parsing is done

Resolves problem with large files that have a regex literal that
confuses the syntax table (like jquery.js).
Previously, if parsing was interrupted by user input, such regex
in a not-yet-parsed part of file broke `parse-partial-sexp' and,
consequently, `js2-enter-key'.

13 years agoRemove unnecessary checks
Dmitry Gutov [Fri, 18 Feb 2011 13:39:06 +0000 (16:39 +0300)]
Remove unnecessary checks

13 years agoFix js2-time
Dmitry Gutov [Fri, 18 Feb 2011 13:23:08 +0000 (16:23 +0300)]
Fix js2-time

13 years agoDon't visit empty nodes
Dmitry Gutov [Thu, 17 Feb 2011 20:41:30 +0000 (23:41 +0300)]
Don't visit empty nodes

That fixes js2-mode-forward-sexp when the buffer has parsing errors

13 years agowindow
mooz [Thu, 17 Feb 2011 04:01:39 +0000 (13:01 +0900)]
window

13 years agoArray pattern of the destructuring assignment allows empty element.
mooz [Thu, 17 Feb 2011 03:40:45 +0000 (12:40 +0900)]
Array pattern of the destructuring assignment allows empty element.

13 years agojs2-define-destruct-symbols: report error position and length
Dmitry Gutov [Wed, 16 Feb 2011 20:00:41 +0000 (23:00 +0300)]
js2-define-destruct-symbols: report error position and length

13 years agoUpdate credits
Dmitry Gutov [Wed, 16 Feb 2011 19:07:20 +0000 (22:07 +0300)]
Update credits

13 years agoUpdate README
Dmitry Gutov [Wed, 16 Feb 2011 18:56:09 +0000 (21:56 +0300)]
Update README

13 years agoDeclare and fontify destructured identifiers inside array comp loops
Dmitry Gutov [Wed, 16 Feb 2011 17:42:00 +0000 (20:42 +0300)]
Declare and fontify destructured identifiers inside array comp loops

13 years agoRearrange expr and loop scopes in array comprehension
Dmitry Gutov [Wed, 16 Feb 2011 16:50:59 +0000 (19:50 +0300)]
Rearrange expr and loop scopes in array comprehension

13 years agoDeclare and fontify destructured identifiers inside function
Dmitry Gutov [Wed, 16 Feb 2011 12:18:38 +0000 (15:18 +0300)]
Declare and fontify destructured identifiers inside function
parameters and variable declarations.

13 years ago"assign to" -> "use"
Dmitry Gutov [Tue, 15 Feb 2011 01:06:58 +0000 (04:06 +0300)]
"assign to" -> "use"

13 years agoNo need for progn here
Dmitry Gutov [Tue, 15 Feb 2011 00:58:56 +0000 (03:58 +0300)]
No need for progn here

13 years agoFix typo
Dmitry Gutov [Tue, 15 Feb 2011 00:34:40 +0000 (03:34 +0300)]
Fix typo

13 years agoHighlight undeclared vars everywhere, not just in assignments
Dmitry Gutov [Mon, 14 Feb 2011 20:36:18 +0000 (23:36 +0300)]
Highlight undeclared vars everywhere, not just in assignments

13 years agoRemove an extra comma
Dmitry Gutov [Sun, 13 Feb 2011 12:47:21 +0000 (15:47 +0300)]
Remove an extra comma

13 years agoUpdate README
Dmitry Gutov [Sun, 13 Feb 2011 00:22:45 +0000 (03:22 +0300)]
Update README

13 years agoUpdate README
Dmitry Gutov [Sun, 13 Feb 2011 00:11:01 +0000 (03:11 +0300)]
Update README

13 years agoAdd imenu support for function nesting
Dmitry Gutov [Sat, 12 Feb 2011 23:55:25 +0000 (02:55 +0300)]
Add imenu support for function nesting

* Nesting is limited to 1 level
* Assignments to 'this' inside nested functions are discarded
* Top-level function can be anonymous, then it doesn't contribute to qname

13 years agoUpdate README
Dmitry Gutov [Sat, 12 Feb 2011 16:17:42 +0000 (19:17 +0300)]
Update README

13 years agoFix js2-compute-nested-prop-get to not recognize form foo[bar]
Dmitry Gutov [Sat, 12 Feb 2011 15:53:46 +0000 (18:53 +0300)]
Fix js2-compute-nested-prop-get to not recognize form foo[bar]

13 years agoRecord proper positions for function nodes in nested object literals
Dmitry Gutov [Fri, 11 Feb 2011 20:57:40 +0000 (23:57 +0300)]
Record proper positions for function nodes in nested object literals

13 years agoRecognize form foo['a'] = function() in imenu
Dmitry Gutov [Fri, 11 Feb 2011 19:30:06 +0000 (22:30 +0300)]
Recognize form foo['a'] = function() in imenu

13 years agoreparse only `js2-use-ast-for-indentation-p` is non-nil
mooz [Sun, 2 Jan 2011 05:51:24 +0000 (14:51 +0900)]
reparse only `js2-use-ast-for-indentation-p` is non-nil

13 years agoreparse line in indentation
mooz [Sun, 2 Jan 2011 05:16:34 +0000 (14:16 +0900)]
reparse line in indentation

13 years agoMerge branch 'master' of github.com:mooz/js2-mode
mooz [Thu, 30 Dec 2010 09:39:19 +0000 (18:39 +0900)]
Merge branch 'master' of github.com:mooz/js2-mode

13 years agofixed bugs indentation
mooz [Thu, 30 Dec 2010 02:17:37 +0000 (11:17 +0900)]
fixed bugs indentation

13 years agofixed bugs indentation
mooz [Thu, 30 Dec 2010 02:17:37 +0000 (11:17 +0900)]
fixed bugs indentation

13 years agooops
mooz [Wed, 29 Dec 2010 05:45:17 +0000 (14:45 +0900)]
oops

13 years agouse offset 4 for `var` and `let`, and 6 for `const`.
mooz [Wed, 29 Dec 2010 04:56:03 +0000 (13:56 +0900)]
use offset 4 for `var` and `let`, and 6 for `const`.

13 years agoupdated README.md
mooz [Tue, 28 Dec 2010 15:06:07 +0000 (00:06 +0900)]
updated README.md

13 years agoforgot `const{
mooz [Tue, 28 Dec 2010 14:35:50 +0000 (23:35 +0900)]
forgot `const{

13 years agofixed ugly indentation with multiple variable declaration. closes #1.
mooz [Tue, 28 Dec 2010 14:25:02 +0000 (23:25 +0900)]
fixed ugly indentation with multiple variable declaration. closes #1.

13 years agoouch
mooz [Thu, 2 Dec 2010 16:02:23 +0000 (01:02 +0900)]
ouch

13 years agooops
mooz [Thu, 2 Dec 2010 14:33:20 +0000 (23:33 +0900)]
oops

13 years agosupport patterns like [{a}]
mooz [Thu, 2 Dec 2010 14:31:34 +0000 (23:31 +0900)]
support patterns like [{a}]

13 years agoAllow abbreviated destructuring assignment in array comprehension
mooz [Wed, 1 Dec 2010 03:10:04 +0000 (12:10 +0900)]
Allow abbreviated destructuring assignment in array comprehension

13 years agoAdded description of indentation style
mooz [Sun, 5 Sep 2010 15:38:57 +0000 (00:38 +0900)]
Added description of indentation style

13 years agoAdded option js2-consistent-level-indent-inner-bracket-p which makes indentation...
mooz [Sun, 5 Sep 2010 15:17:23 +0000 (00:17 +0900)]
Added option js2-consistent-level-indent-inner-bracket-p which makes indentation more normally.

14 years agoFixed the indentation for braceless 'for each'.
mooz [Tue, 13 Apr 2010 01:51:10 +0000 (10:51 +0900)]
Fixed the indentation for braceless 'for each'.

14 years ago:)
mooz [Tue, 13 Apr 2010 01:50:52 +0000 (10:50 +0900)]
:)

14 years agoVersion 20100402
mooz [Fri, 2 Apr 2010 10:51:53 +0000 (19:51 +0900)]
Version 20100402

14 years agoFix: when reserved words are used as identifier, js2-mode's parser will corrupt.
mooz [Fri, 2 Apr 2010 10:45:08 +0000 (19:45 +0900)]
Fix: when reserved words are used as identifier, js2-mode's parser will corrupt.

14 years agoRefactored
mooz [Fri, 19 Mar 2010 05:39:02 +0000 (14:39 +0900)]
Refactored

14 years agoUpdated README
mooz [Fri, 19 Mar 2010 04:18:09 +0000 (13:18 +0900)]
Updated README

14 years agoOops.
mooz [Fri, 19 Mar 2010 03:53:19 +0000 (12:53 +0900)]
Oops.

14 years agoFixed the odd indentation for the "else if" with no brace
mooz [Fri, 19 Mar 2010 03:46:19 +0000 (12:46 +0900)]
Fixed the odd indentation for the "else if" with no brace

14 years agoAdded document
mooz [Mon, 15 Mar 2010 12:46:13 +0000 (21:46 +0900)]
Added document

14 years agoAdded support for expression closure as the property value
mooz [Mon, 15 Mar 2010 12:07:37 +0000 (21:07 +0900)]
Added support for expression closure as the property value

14 years agoabbreviated destructuring bind as function params
mooz [Mon, 15 Mar 2010 10:26:56 +0000 (19:26 +0900)]
abbreviated destructuring bind as function params

14 years agoadded ignore list
mooz [Mon, 15 Mar 2010 10:21:39 +0000 (19:21 +0900)]
added ignore list

14 years agoAdded support for abbreviated destructuring bind expression.
mooz [Mon, 15 Mar 2010 10:07:32 +0000 (19:07 +0900)]
Added support for abbreviated destructuring bind expression.

14 years agoOriginal js2-mode.el
mooz [Mon, 15 Mar 2010 10:05:37 +0000 (19:05 +0900)]
Original js2-mode.el