]> code.delx.au - gnu-emacs-elpa/commitdiff
Skip all insignificant expression prefixes.
authorJackson Ray Hamilton <jackson@jacksonrayhamilton.com>
Sat, 13 Jun 2015 20:02:04 +0000 (13:02 -0700)
committerJackson Ray Hamilton <jackson@jacksonrayhamilton.com>
Sat, 13 Jun 2015 20:02:04 +0000 (13:02 -0700)
context-coloring.el
test/context-coloring-test.el
test/fixtures/ignored.el

index fc82548e01afc3d598d081852cd9d3e71c8b766d..a9bcdaced2877e6f85a9d42dc51960ec048ed1cf 100644 (file)
@@ -908,10 +908,9 @@ point.  It could be a quoted or backquoted expression."
         start
         end)
     (cond
-     ((or (= char context-coloring-APOSTROPHE-CHAR)
-          (= char context-coloring-OCTOTHORPE-CHAR))
+     ((/= char context-coloring-BACKTICK-CHAR)
       (context-coloring-elisp-forward-sexp))
-     ((= char context-coloring-BACKTICK-CHAR)
+     (t
       (setq start (point))
       (setq end (progn (forward-sexp)
                        (point)))
index 56d072ccf0eabe1f0e2cbb28c6f8b0cc3064d943..291b36a1006f0cc29ce392c37ca04fdae625d707 100644 (file)
@@ -1131,7 +1131,7 @@ ssssssssssss0"))
   (lambda ()
     (context-coloring-test-assert-coloring "
 (xxxxx x ()
-  (x x 1 11 11 111 111 11 11 1 111 (1 1 1)))")))
+  (x x 1 11 11 111 111 11 11 11 1 111 (1 1 1)))")))
 
 (context-coloring-test-deftest-emacs-lisp sexp
   (lambda ()
index ce7774e7eac2e940da2d23c8dbad0906d518b762..1f5fd42e534beba1a6d21a9a73270f269d82f0c4 100644 (file)
@@ -1,2 +1,2 @@
 (defun a ()
-  (+ a 1 +1 -1 1.0 #x0 \a :a t nil (0 . 0)))
+  (+ a 1 +1 -1 1.0 #x0 ,a \a :a t nil (0 . 0)))