[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master ea3fd79 071/271: Make implicit global variables bold.
From: |
Jackson Ray Hamilton |
Subject: |
[elpa] master ea3fd79 071/271: Make implicit global variables bold. |
Date: |
Thu, 05 Feb 2015 18:29:51 +0000 |
branch: master
commit ea3fd79c18df40092f90c87a72cb24400d7176ed
Author: Jackson Ray Hamilton <address@hidden>
Commit: Jackson Ray Hamilton <address@hidden>
Make implicit global variables bold.
---
scopifier.js | 2 +-
test/fixtures/scopes.js | 8 ++++++++
2 files changed, 9 insertions(+), 1 deletions(-)
diff --git a/scopifier.js b/scopifier.js
index 4897ddc..952c15c 100644
--- a/scopifier.js
+++ b/scopifier.js
@@ -91,7 +91,7 @@ module.exports = function (code) {
range[0],
range[1],
reference.resolved ? reference.resolved.scope.level : 0,
- normal
+ reference.__maybeImplicitGlobal ? bold : normal
]]);
}, []);
symbols = symbols.concat(definitions).concat(references);
diff --git a/test/fixtures/scopes.js b/test/fixtures/scopes.js
new file mode 100644
index 0000000..696d812
--- /dev/null
+++ b/test/fixtures/scopes.js
@@ -0,0 +1,8 @@
+(function () {
+ var a;
+ var b = 0;
+}());
+var A;
+var B = 1;
+window.setTimeout();
+ooga = 2;
- [elpa] master 65e4763 065/271: Just push to a single tokens array., (continued)
- [elpa] master 65e4763 065/271: Just push to a single tokens array., Jackson Ray Hamilton, 2015/02/05
- [elpa] master cb8b1f2 066/271: Add light color scheme., Jackson Ray Hamilton, 2015/02/05
- [elpa] master 7a49f9f 067/271: Make comments italic., Jackson Ray Hamilton, 2015/02/05
- [elpa] master 07fe42c 078/271: Vconcat., Jackson Ray Hamilton, 2015/02/05
- [elpa] master 28667b8 075/271: Move microoptimized scopifier into the limelight., Jackson Ray Hamilton, 2015/02/05
- [elpa] master c1f9f11 063/271: Switch to concat., Jackson Ray Hamilton, 2015/02/05
- [elpa] master 183ac4e 081/271: Add emacs benchmark., Jackson Ray Hamilton, 2015/02/05
- [elpa] master 59b1c99 074/271: Documentation and cleanup., Jackson Ray Hamilton, 2015/02/05
- [elpa] master c81c3fd 068/271: Make declarations bold., Jackson Ray Hamilton, 2015/02/05
- [elpa] master f9eb4a1 080/271: Revert "Use alist of faces.", Jackson Ray Hamilton, 2015/02/05
- [elpa] master ea3fd79 071/271: Make implicit global variables bold.,
Jackson Ray Hamilton <=
- [elpa] master 1039a74 073/271: Update microoptimized version., Jackson Ray Hamilton, 2015/02/05
- [elpa] master 18e35dd 069/271: Shift token properties., Jackson Ray Hamilton, 2015/02/05
- [elpa] master 49f5e3e 079/271: Use alist of faces., Jackson Ray Hamilton, 2015/02/05
- [elpa] master 8615688 089/271: Create tests., Jackson Ray Hamilton, 2015/02/05
- [elpa] master 10d7726 077/271: Use custom JSON parser., Jackson Ray Hamilton, 2015/02/05
- [elpa] master 099f434 082/271: Add optimizations for byte-compilation., Jackson Ray Hamilton, 2015/02/05
- [elpa] master 0bfdbcd 085/271: Remove naive timers., Jackson Ray Hamilton, 2015/02/05
- [elpa] master 4874e1e 086/271: Improve documentation and Makefile., Jackson Ray Hamilton, 2015/02/05
- [elpa] master 43d2ca0 090/271: Remove unused monad., Jackson Ray Hamilton, 2015/02/05
- [elpa] master 820becb 084/271: Fix test., Jackson Ray Hamilton, 2015/02/05