]> code.delx.au - gnu-emacs-elpa/commitdiff
Add more sophisticated block scope test.
authorJackson Ray Hamilton <jackson@jacksonrayhamilton.com>
Mon, 8 Jun 2015 07:49:09 +0000 (00:49 -0700)
committerJackson Ray Hamilton <jackson@jacksonrayhamilton.com>
Wed, 15 Jul 2015 04:50:31 +0000 (21:50 -0700)
test/context-coloring-test.el
test/fixtures/block-scopes.js

index ddf068084f52b6ba6932cb7b55af987bde11abd5..32e4d808306f550f986addefe54d19fd67d1d302 100644 (file)
@@ -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 ()
index 735ca6f110b4c68b0f9ac678934c0d6767d19c81..86e4a1368a4ee50d46cd6ad3cdbfb3efebcdc047 100644 (file)
@@ -2,5 +2,15 @@
     if (1) {
         var a;
         let b;
+        const c;
+    }
+}());
+
+(function () {
+    'use strict';
+    if (1) {
+        var a;
+        let b;
+        const c;
     }
 }());