Comments in Emacs mode

Nicolas et Ryoko nicolas.pelletier3 at wanadoo.fr
Fri May 30 14:26:51 PDT 2003


Hello,

the comments at the top of cc.slate did not get highlighted correctly:
the \"  were interpreted as plain  ". Here is a  small modification to
fix this.

-- 
Nicolas

-------------- next part --------------
Index: slate-mode.el
===================================================================
RCS file: /var/lib/cvs/slate/slate/etc/slate-mode.el,v
retrieving revision 1.25
diff -u -r1.25 slate-mode.el
--- slate-mode.el	27 May 2003 21:41:50 -0000	1.25
+++ slate-mode.el	30 May 2003 21:24:10 -0000
@@ -350,7 +350,6 @@
      #'(lambda (l)
          (modify-syntax-entry (car l) (cdr l) table))
      '((?\' . "\"") ; String
-       (?\" . "!") ; Comment
        (?+  . ".")
        (?-  . "_")
        (?*  . ".")
@@ -408,6 +407,7 @@
     ("\\(?:[A-z0-9_]* \\)*\\(?:traits\\|derive\\)"
      . font-lock-type-face)		; traits name
     ("\\^ " . font-lock-warning-face)	; return
+    ("[^\\]\"[^\\]\"" . font-lock-comment-face)
    ))
 
 (defconst slate-indent-amount 2


More information about the Slate mailing list