emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] master 6a4e84b 26/45: js2-parse-for: Reword docstring and comment


From: Dmitry Gutov
Subject: [elpa] master 6a4e84b 26/45: js2-parse-for: Reword docstring and comments
Date: Mon, 02 Feb 2015 03:18:44 +0000

branch: master
commit 6a4e84bfcc89b2a73abd5fe400d7119fd5251abb
Author: Dmitry Gutov <address@hidden>
Commit: Dmitry Gutov <address@hidden>

    js2-parse-for: Reword docstring and comments
---
 js2-mode.el |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/js2-mode.el b/js2-mode.el
index 2704edb..91b3062 100644
--- a/js2-mode.el
+++ b/js2-mode.el
@@ -7991,14 +7991,14 @@ Return value is a list (EXPR LP RP), with absolute 
paren positions."
     pn))
 
 (defun js2-parse-for ()
-  "Parser for for-statement.  Last matched token must be js2-FOR.
-Parses for, for-in, and for each-in statements."
+  "Parse a for, for-in or for each-in statement.
+Last matched token must be js2-FOR."
   (let ((for-pos (js2-current-token-beg))
         pn is-for-each is-for-in-or-of is-for-of
         in-pos each-pos tmp-pos
-        init  ; Node init is also foo in 'foo in object'
-        cond  ; Node cond is also object in 'foo in object'
-        incr  ; 3rd section of for-loop initializer
+        init  ; Node init is also foo in 'foo in object'.
+        cond  ; Node cond is also object in 'foo in object'.
+        incr  ; 3rd section of for-loop initializer.
         body tt lp rp)
     ;; See if this is a for each () instead of just a for ()
     (when (js2-match-token js2-NAME)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]