[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;
- [elpa] master 6e991c4 014/271: Fix off-by-one error., (continued)
- [elpa] master 6e991c4 014/271: Fix off-by-one error., Jackson Ray Hamilton, 2015/02/05
- [elpa] master b35380b 019/271: Vastly improve idle timer strategy., Jackson Ray Hamilton, 2015/02/05
- [elpa] master 7ac8db6 012/271: Fix a bug where strings were matched., Jackson Ray Hamilton, 2015/02/05
- [elpa] master 806398e 016/271: Use asynchronous command execution strategy., Jackson Ray Hamilton, 2015/02/05
- [elpa] master d0f5470 022/271: Successfully lexically bind buffer., Jackson Ray Hamilton, 2015/02/05
- [elpa] master 397ef04 005/271: Detect globals., Jackson Ray Hamilton, 2015/02/05
- [elpa] master 409a05b 017/271: Enable font lock again., Jackson Ray Hamilton, 2015/02/05
- [elpa] master a72314c 008/271: Write temp files., Jackson Ray Hamilton, 2015/02/05
- [elpa] master 6a2a7df 018/271: Use idle timers instead of font lock., Jackson Ray Hamilton, 2015/02/05
- [elpa] master 0a4248b 009/271: Update chunk size., Jackson Ray Hamilton, 2015/02/05
- [elpa] master ffd69f5 026/271: Minutia.,
Jackson Ray Hamilton <=
- [elpa] master f349ecb 027/271: Minutia., Jackson Ray Hamilton, 2015/02/05
- [elpa] master 35453e0 015/271: Only color changed regions., Jackson Ray Hamilton, 2015/02/05
- [elpa] master 222276b 001/271: Init., Jackson Ray Hamilton, 2015/02/05
- [elpa] master 09166f9 021/271: Some progress, probably have to switch back to lexical., Jackson Ray Hamilton, 2015/02/05
- [elpa] master e448e2f 025/271: Cancelling working., Jackson Ray Hamilton, 2015/02/05
- [elpa] master 97194c7 023/271: Apply tokens with lexically-bound buffer as current., Jackson Ray Hamilton, 2015/02/05
- [elpa] master b4b86ac 033/271: Fix after-change-functions with add-hook. Fix nulls., Jackson Ray Hamilton, 2015/02/05
- [elpa] master cce215d 030/271: Add readme., Jackson Ray Hamilton, 2015/02/05
- [elpa] master 169b1f4 028/271: Set JSLint options to not care., Jackson Ray Hamilton, 2015/02/05
- [elpa] master df36161 031/271: Fix screenshot link., Jackson Ray Hamilton, 2015/02/05