[emacs user responding] > > > (setq font-lock-syntactic-keywords > > > '(("\\$\\([#\"'`$\\]\\)" 1 (1 . nil)) > > > ("\\(#\\)[{$@]" 1 (1 . nil)) > > > ("\\(/\\)\\([^/\n]\\|\\\\/\\)*\\(/\\)" > > > (1 (7 . ?')) > > > (3 (7 . ?'))))) Those regexps enable: - $# etc to get a specific color, at the same time messing "$" up, - #{, #$ and #@ NOT to be interpreted as comment (don't see the use of this, "#{}" is fine), - /regexp/ to be recognized (also matches 2/3 * 3/4) I've been as blunt as to remove the entire ; (make-local-variable 'font-lock-syntactic-keywords) ; (setq font-lock-syntactic-keywords ; '(("\\$\\([#\"'`$\\]\\)" 1 (1 . nil)) ; ("\\(#\\)[{$@]" 1 (1 . nil)) ; ("\\(/\\)\\([^/\n]\\|\\\\/\\)*\\(/\\)" ; (1 (7 . ?')) ; (3 (7 . ?'))))) but you may try any of the three expressions, e.g: ;("\\(/\\)\\([^/\n]\\|\\\\/\\)*\\(/\\)" ; (1 (7 . ?')) ; (3 (7 . ?'))) )) runs under emacs, ymmv under xemacs. +--- Kero ------------------------------ kero / chello.nl ---+ | Don't split your mentality without thinking twice | | Proud like a God -- Guano Apes | +--- M38c ------- http://members.chello.nl/~k.vangelder ---+