]> git.eshelyaron.com Git - emacs.git/commitdiff
(cperl-init-faces): Use font-lock-negation-char-face.
authorDaniel Pfeiffer <occitan@esperanto.org>
Thu, 5 May 2005 19:04:39 +0000 (19:04 +0000)
committerDaniel Pfeiffer <occitan@esperanto.org>
Thu, 5 May 2005 19:04:39 +0000 (19:04 +0000)
lisp/progmodes/cperl-mode.el

index 4a701edcca2e615933195c58f954bfc2f58693e1..35957457a9a2edb0537eb1c05c137eeb5d653c88 100644 (file)
@@ -4751,7 +4751,10 @@ indentation and initial hashes.  Behaves usually outside of comment."
                  (t '("^[ \t{}]*\\(my\\|local\\our\\)[ \t]*\\(([ \t]*\\)?\\([$@%*][a-zA-Z0-9_:]+\\)"
                       3 font-lock-variable-name-face)))
            '("\\<for\\(each\\)?\\([ \t]+\\(my\\|local\\|our\\)\\)?[ \t]*\\(\\$[a-zA-Z_][a-zA-Z_0-9]*\\)[ \t]*("
-             4 font-lock-variable-name-face)))
+             4 font-lock-variable-name-face)
+           ;; Avoid s!!, qq!! etc. when not fontifying syntaxically
+           '("\\(?:^\\|[^smywqrx]\\)\\(!\\)" 1 font-lock-negation-char-face)
+           '("\\[\\(\\^\\)" 1 font-lock-negation-char-face prepend)))
          (setq
           t-font-lock-keywords-1
           (and (fboundp 'turn-on-font-lock) ; Check for newer font-lock