[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master bc42697 40/45: Fix free variable references
From: |
Dmitry Gutov |
Subject: |
[elpa] master bc42697 40/45: Fix free variable references |
Date: |
Mon, 02 Feb 2015 03:18:50 +0000 |
branch: master
commit bc4269763ecf0d7af49dadba5bc0719fa3dd9ed9
Author: Dmitry Gutov <address@hidden>
Commit: Dmitry Gutov <address@hidden>
Fix free variable references
Props to Flycheck.
---
js2-mode.el | 9 ++++-----
1 files changed, 4 insertions(+), 5 deletions(-)
diff --git a/js2-mode.el b/js2-mode.el
index 096f985..8133903 100644
--- a/js2-mode.el
+++ b/js2-mode.el
@@ -5632,8 +5632,7 @@ See http://es5.github.io/#x7.6"
"Skip to end of line."
(while (not (memq (js2-get-char) js2-eol-chars)))
(js2-unget-char)
- (setf (js2-token-end (js2-current-token)) js2-ts-cursor)
- (setq js2-token-end js2-ts-cursor))
+ (setf (js2-token-end (js2-current-token)) js2-ts-cursor))
(defun js2-init-scanner (&optional buf line)
"Create token stream for BUF starting on LINE.
@@ -5869,9 +5868,9 @@ the token is flagged as such."
During operation, creates an instance of `js2-token' struct, sets
its relevant fields and puts it into `js2-ti-tokens'."
(let (identifier-start
- is-unicode-escape-start c c1
+ is-unicode-escape-start c
contains-escape escape-val str result base
- quote-char val look-for-slash continue tt
+ quote-char look-for-slash continue tt
(token (js2-new-token 0)))
(setq
tt
@@ -6238,7 +6237,7 @@ its relevant fields and puts it into `js2-ti-tokens'."
;; building it out of a string buffer.
(let ((c (js2-get-char))
js2-ts-string-buffer
- nc)
+ nc c1 val escape-val)
(catch 'break
(while (/= c quote-char)
(catch 'continue
- [elpa] master 65bd910 35/45: `js2-time' remove unused variable., (continued)
- [elpa] master 65bd910 35/45: `js2-time' remove unused variable., Dmitry Gutov, 2015/02/01
- [elpa] master e109213 36/45: Merge pull request #203 from cheunghy/master, Dmitry Gutov, 2015/02/01
- [elpa] master b0ea681 33/45: Add animationFrame functions, Dmitry Gutov, 2015/02/01
- [elpa] master 590db34 37/45: js2-parse-class-stmt: Define the class in the current scope, Dmitry Gutov, 2015/02/01
- [elpa] master ba564b7 38/45: Handle arrowfun empty-args in js2-parse-paren-expr-or-generator-comp, Dmitry Gutov, 2015/02/01
- [elpa] master 874cf77 31/45: js2-get-token-internal-1: Reindent, Dmitry Gutov, 2015/02/01
- [elpa] master 58c6636 27/45: Support ES6 module syntax, Dmitry Gutov, 2015/02/01
- [elpa] master b91f874 34/45: Merge pull request #202 from brianloveswords/add-browser-externs, Dmitry Gutov, 2015/02/01
- [elpa] master f0935fa 42/45: Add top-level heading, Dmitry Gutov, 2015/02/01
- [elpa] master 7558a96 44/45: Bump the version and update NEWS, Dmitry Gutov, 2015/02/01
- [elpa] master bc42697 40/45: Fix free variable references,
Dmitry Gutov <=
- [elpa] master a018a79 43/45: Highlight JS snippets, Dmitry Gutov, 2015/02/01
- [elpa] master 66d69cb 39/45: js2-test-parse-string: Compare the first syntax error, Dmitry Gutov, 2015/02/01
- [elpa] master b67d97b 41/45: Move the news from the wiki to the repo, Dmitry Gutov, 2015/02/01
- [elpa] master dedfa35 28/45: Replace usage of 'cl with 'cl-lib, Dmitry Gutov, 2015/02/01
- [elpa] master f655a55 30/45: Merge pull request #191 from purcell/cl-lib, Dmitry Gutov, 2015/02/01
- [elpa] master a1ac1e0 45/45: Merge commit '7558a961a03b3a9d26fafc69d9665e4aadf47738' from js2-mode, Dmitry Gutov, 2015/02/01