]> code.delx.au - gnu-emacs-elpa/commitdiff
No need to explicitly apply face to string nodes
authorDmitry Gutov <dgutov@yandex.ru>
Sun, 30 Nov 2014 18:23:32 +0000 (20:23 +0200)
committerDmitry Gutov <dgutov@yandex.ru>
Sun, 30 Nov 2014 18:23:32 +0000 (20:23 +0200)
js2-mode.el

index d15d8f98726506501c349cf2fadd44a3fb06637a..c5905ee7e9b12d4777f2771dd0f10931760e688c 100644 (file)
@@ -9394,9 +9394,7 @@ array-literals, array comprehensions and regular expressions."
      ((= tt js2-NUMBER)
       (make-js2-number-node))
      ((or (= tt js2-STRING) (= tt js2-NO_SUBS_TEMPLATE))
-      (prog1
-          (make-js2-string-node :type tt)
-        (js2-record-face 'font-lock-string-face)))
+      (make-js2-string-node :type tt))
      ((= tt js2-TEMPLATE_HEAD)
       (js2-parse-template-literal))
      ((or (= tt js2-DIV) (= tt js2-ASSIGN_DIV))