emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Fontifying one char strings.


From: Michael Cadilhac
Subject: Fontifying one char strings.
Date: Sun, 16 Oct 2005 17:16:07 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

  Hello !

  In a docstring, if I have :

  "`nil' if blahblah, `t' otherwise.",

  only nil will be fontified with font-lock-constant-face.

  I'm wondering why  this should be that way,  I'm using the following
  patch without being annoyed:

*** emacs/lisp/font-lock.el     2005-10-16 17:07:12.000000000 +0200
--- emacs/lisp/font-lock.el     2005-10-16 17:07:30.000000000 +0200
***************
*** 2077,2083 ****
         ;; Words inside \\[] tend to be for `substitute-command-keys'.
         ("\\\\\\\\\\[\\(\\sw+\\)]" 1 font-lock-constant-face prepend)
         ;; Words inside `' tend to be symbol names.
!        ("`\\(\\sw\\sw+\\)'" 1 font-lock-constant-face prepend)
         ;; Constant values.
         ("\\<:\\sw+\\>" 0 font-lock-builtin-face)
         ;; ELisp and CLisp `&' keywords as types.
--- 2077,2083 ----
         ;; Words inside \\[] tend to be for `substitute-command-keys'.
         ("\\\\\\\\\\[\\(\\sw+\\)]" 1 font-lock-constant-face prepend)
         ;; Words inside `' tend to be symbol names.
!        ("`\\(\\sw+\\)'" 1 font-lock-constant-face prepend)
         ;; Constant values.
         ("\\<:\\sw+\\>" 0 font-lock-builtin-face)
         ;; ELisp and CLisp `&' keywords as types.

-- 
    Michael Cadilhac, a.k.a. Micha [mika] |
                    Epita/LRDE promo 2007 |  Please note that you should
  2 rue de la Convention | 08.70.65.13.14 |  s/address@hidden/@/ my mail 
address.
94270 Le Kremlin Bicetre | 06.23.20.31.30 |

Attachment: pgpUtUUZ5itqP.pgp
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]