branch: master
commit 85397da6e06fe11c40bf5cadddba302f6e57a3dc
Author: Jackson Ray Hamilton <jack...@jacksonrayhamilton.com>
Commit: Jackson Ray Hamilton <jack...@jacksonrayhamilton.com>
    Add more sophisticated block scope test.
---
 test/context-coloring-test.el |   10 ++++++++++
 test/fixtures/block-scopes.js |   10 ++++++++++
 2 files changed, 20 insertions(+), 0 deletions(-)

diff --git a/test/context-coloring-test.el b/test/context-coloring-test.el
index ddf0680..32e4d80 100644
--- a/test/context-coloring-test.el
+++ b/test/context-coloring-test.el
@@ -503,6 +503,16 @@ other non-letters are guaranteed to always be discarded."
     11 111 2
         222 12
         222 22
+        22222 12
+    2
+}());
+
+(xxxxxxxx () {
+    'xxx xxxxxx';
+    11 111 2
+        222 12
+        222 22
+        22222 22
     2
 }());"))
   :before (lambda ()
diff --git a/test/fixtures/block-scopes.js b/test/fixtures/block-scopes.js
index 735ca6f..86e4a13 100644
--- a/test/fixtures/block-scopes.js
+++ b/test/fixtures/block-scopes.js
@@ -2,5 +2,15 @@
     if (1) {
         var a;
         let b;
+        const c;
+    }
+}());
+
+(function () {
+    'use strict';
+    if (1) {
+        var a;
+        let b;
+        const c;
     }
 }());

Reply via email to