[Gd-chatter] r11351 - trunk/gwydion/tools/elisp

cpage at gwydiondylan.org cpage at gwydiondylan.org
Sun May 13 15:28:26 CEST 2007


Author: cpage
Date: Sun May 13 15:28:25 2007
New Revision: 11351

Modified:
   trunk/gwydion/tools/elisp/dylan-mode.el
Log:
Job: minor

Font Lock highlight the negation operator ("~") with `font-lock-negation-char-face'.

This will (unfortunately) highlight some occurrences of the character within
binding names, since Dylan's name syntax is non-trivial. Consider making this
more robust.


Modified: trunk/gwydion/tools/elisp/dylan-mode.el
==============================================================================
--- trunk/gwydion/tools/elisp/dylan-mode.el	(original)
+++ trunk/gwydion/tools/elisp/dylan-mode.el	Sun May 13 15:28:25 2007
@@ -744,6 +744,8 @@
 		      ;; Is there a better way to fontify these symbols? Using
 		      ;; font-lock syntactic keywords, perhaps?
 		      '("\\(#\\)\"[^\"]*\"?" 1 font-lock-string-face)
+		      ;; Logical negation operator
+		      '("\\W\\(~\\)" 1 font-lock-negation-char-face)
 		      ;; Function signature keywords
 		      ;;
 		      ;; "#" does not have symbol or word syntax, so we can't



More information about the chatter mailing list