]> code.delx.au - gnu-emacs-elpa/log
gnu-emacs-elpa
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.

9 years agoSupport parsing the ES6 'static' keyword.
Stephen Hicks [Tue, 11 Nov 2014 01:59:47 +0000 (17:59 -0800)]
Support parsing the ES6 'static' keyword.

This is defined in the ClassElement production in §14.5 of the draft ES6 spec: http://people.mozilla.org/~jorendorff/es6-draft.html#sec-class-definitions, and usage examples are available at e.g. https://github.com/lukehoban/es6features#classes.

9 years agoSupport ES6 class statements/expressions.
Stephen Hicks [Tue, 11 Nov 2014 01:54:25 +0000 (17:54 -0800)]
Support ES6 class statements/expressions.

This is specified in §14.5 of the draft ES6 spec: http://people.mozilla.org/~jorendorff/es6-draft.html#sec-class-definitions, and described via examples at https://github.com/lukehoban/es6features#enhanced-object-literals.  This commit does not yet add support for the 'static' keyword.

9 years agojs2-imenu-walk-ast: Look up js2-imenu-show-module-pattern in v-i-n case, too
Dmitry Gutov [Thu, 13 Nov 2014 17:24:27 +0000 (19:24 +0200)]
js2-imenu-walk-ast: Look up js2-imenu-show-module-pattern in v-i-n case, too

9 years agojs2-imenu-record-module-pattern: Support `js2-var-init-node'
Dmitry Gutov [Thu, 13 Nov 2014 07:16:47 +0000 (09:16 +0200)]
js2-imenu-record-module-pattern: Support `js2-var-init-node'

* Update `js2-imenu-walk-ast' accordingly.

9 years agoSupport orphan functions on the right side of assignments
Dmitry Gutov [Thu, 13 Nov 2014 06:34:06 +0000 (08:34 +0200)]
Support orphan functions on the right side of assignments

* js2-imenu-extras.el (js2-imenu-extras-setup): Use the new hook
instead of `js2-post-parse-callbacks'.
(js2-imenu-record-orphan-function): Rename, update the caller.
(js2-imenu-record-orphan-assign-node-function): New function, to
handle orphan functions on the right side of assignments.
(js2-imenu-walk-ast): Use it.

* js2-mode.el (js2-build-imenu-callbacks): New hook variable.
(js2-browse-postprocess-chains): Use it.  Make it take no
arguments and be aware of `js2-imenu-recorder'.
(js2-wrapper-function-p): Check that the wrapped function is the
call's target.
(js2-build-imenu-index): Run `js2-browse-postprocess-chains' even
when `js2-imenu-recorder' is empty.  It might get modified in
callbacks.
(js2-browse-postprocess-chains): When skipping a function, remove
its entry from `js2-imenu-function-map'.

Based on
https://github.com/redguardtoo/js2-mode/commit/efc5d4704d260522d04b5642c844711ba1cfc7f7#commitcomment-8441004.

9 years agoSupport ES6 computed property names.
Stephen Hicks [Tue, 11 Nov 2014 01:42:57 +0000 (17:42 -0800)]
Support ES6 computed property names.

This is specified by the ComputedPropertyName production in §12.2.5 of the draft ES6 spec: http://people.mozilla.org/~jorendorff/es6-draft.html#sec-object-initializer, and discussed at https://github.com/lukehoban/es6features\#enhanced-object-literals.

9 years agoAdd support for 'u' and 'y' RegExp flags in ES6 mode.
Stephen Hicks [Tue, 11 Nov 2014 01:25:28 +0000 (17:25 -0800)]
Add support for 'u' and 'y' RegExp flags in ES6 mode.

These flags are defined in §12.2.7.1 of the draft spec: http://people.mozilla.org/\~jorendorff/es6-draft.html\#sec-primary-expression-regular-expression-literals-static-semantics-early-errors (narrowing the RegularExpressionFlags production defined in §11.8.5).  The new flags are described at https://mathiasbynens.be/notes/es6-unicode-regex.

9 years agoSupport method definitions in object literals.
Stephen Hicks [Tue, 11 Nov 2014 01:17:08 +0000 (17:17 -0800)]
Support method definitions in object literals.

This is specified in §14.3 of the current draft spec http://people.mozilla.org/~jorendorff/es6-draft.html#sec-method-definitions, and discussed with examples at http://ariya.ofilabs.com/2013/03/es6-and-method-definitions.html.

9 years agoAdd ES6 class externs
Stephen Hicks [Tue, 11 Nov 2014 00:59:04 +0000 (16:59 -0800)]
Add ES6 class externs

These are delineated in §18.3 of the draft spec, Constructor Properties of the Global Object: http://people.mozilla.org/~jorendorff/es6-draft.html#sec-constructor-properties-of-the-global-object.

9 years agoSupport short-hand object literals {foo, bar} everywhere.
Stephen Hicks [Tue, 11 Nov 2014 00:14:14 +0000 (16:14 -0800)]
Support short-hand object literals {foo, bar} everywhere.

This is specified in §12.2.5 of the draft spec (http://people.mozilla.org/~jorendorff/es6-draft.html#sec-object-initializer) by the production [PropertyDefinition : IdentifierReference], and discussed e.g. in http://ariya.ofilabs.com/2013/02/es6-and-object-literal-property-value-shorthand.html.

9 years agoCheck in LICENSE
Dmitry Gutov [Thu, 6 Nov 2014 18:20:59 +0000 (20:20 +0200)]
Check in LICENSE

9 years agoIndent after `+='
Dmitry Gutov [Wed, 5 Nov 2014 09:54:28 +0000 (11:54 +0200)]
Indent after `+='

Closes #174

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