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

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

[elpa] master ffd69f5 026/271: Minutia.


From: Jackson Ray Hamilton
Subject: [elpa] master ffd69f5 026/271: Minutia.
Date: Thu, 05 Feb 2015 18:29:31 +0000

branch: master
commit ffd69f5fb07c6efbc924f2460bbcbce6d03e6058
Author: Jackson Ray Hamilton <address@hidden>
Commit: Jackson Ray Hamilton <address@hidden>

    Minutia.
---
 scripts/tokenizer.js |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/scripts/tokenizer.js b/scripts/tokenizer.js
index 5b33944..a95c3b2 100644
--- a/scripts/tokenizer.js
+++ b/scripts/tokenizer.js
@@ -6,7 +6,8 @@ var JSLINT = require('./jslint'),
     // Accumulated input.
     whole = '',
 
-    // Acquires the number of accumulated characters after the end of each 
line.
+    // Acquires the number of accumulated characters after the end of each 
line,
+    // for each line.
     getTotals = function (file) {
         var lines = file.split('\n'),
             total = 0,
@@ -35,12 +36,13 @@ process.stdin.on('readable', function () {
 });
 
 process.stdin.on('end', function () {
-    var data, totals, out, i, tokens, length, cap, token, origin, level, total;
+    var data, globals, totals, out, i, tokens, length, cap, token, origin, 
level, total;
 
     // Generate a syntax tree for the input.
     JSLINT(whole);
     data = JSLINT.data();
 
+    globals = data.global;
     totals = getTotals(whole);
 
     // Minimize an otherwise-circular structure.
@@ -67,7 +69,7 @@ process.stdin.on('end', function () {
         // Globality is not indicated by origin function.
         if (token.kind !== 'function' &&
                 (token.identifier &&
-                 data.global.indexOf(token.string) > -1)) {
+                 globals.indexOf(token.string) > -1)) {
             level = 0;
         } else {
             level = origin.function.level;



reply via email to

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