]> code.delx.au - gnu-emacs-elpa/commitdiff
Handle octothorpes.
authorJackson Ray Hamilton <jackson@jacksonrayhamilton.com>
Sat, 30 May 2015 17:51:28 +0000 (10:51 -0700)
committerJackson Ray Hamilton <jackson@jacksonrayhamilton.com>
Sat, 30 May 2015 17:51:28 +0000 (10:51 -0700)
context-coloring.el
test/fixtures/ignored.el

index 089236b51bbff2074a2163bc168b281f4cb88987..459aca0e75856cd65ad326c752aba53ca9a49693 100644 (file)
@@ -326,6 +326,7 @@ generated by `js2-mode'."
 (defconst context-coloring-COMMENT-START-CODE 11)
 (defconst context-coloring-COMMENT-END-CODE 12)
 
+(defconst context-coloring-OCTOTHORPE-CHAR (string-to-char "#"))
 (defconst context-coloring-APOSTROPHE-CHAR (string-to-char "'"))
 (defconst context-coloring-OPEN-PARENTHESIS-CHAR (string-to-char "("))
 (defconst context-coloring-COMMA-CHAR (string-to-char ","))
@@ -597,7 +598,8 @@ generated by `js2-mode'."
         char)
     (setq char (char-after))
     (cond
-     ((= char context-coloring-APOSTROPHE-CHAR)
+     ((or (= char context-coloring-APOSTROPHE-CHAR)
+          (= char context-coloring-OCTOTHORPE-CHAR))
       (forward-sexp))
      ((= char context-coloring-BACKTICK-CHAR)
       (setq start (point))
index 776a846d8aac7c07db18411afca2c75c1a59416f..748b9701bed71787609ba2c01656d8157a568de0 100644 (file)
@@ -1,2 +1,2 @@
 (defun a ()
-  (+ a 1 +1 -1 1.0 :a t nil (0 . 0)))
+  (+ a 1 +1 -1 1.0 #x0 :a t nil (0 . 0)))