all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* How to make font lock work with comments?
@ 2010-12-29  9:50 rusi
  2010-12-30  8:43 ` Elena
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: rusi @ 2010-12-29  9:50 UTC (permalink / raw
  To: help-gnu-emacs

Im hacking on an apl mode


 (let ((st (make-syntax-table))
        (comment-char ?\x235d))
:
:
 (modify-syntax-entry comment-char "<" st)

This char shows as follows (Dont know if it shows elsewhere..)

⍝ A comment

When I put point on the char and call describe-char I get

---------------------------------
        character: ⍝ (9053, #o21535, #x235d)
preferred charset: unicode (Unicode (ISO10646))
       code point: 0x235D
           syntax: < 	which means: comment
         category: .:Base
         to input: type "{upshoe-jot}" or "{lamp}" or "{comment}" or
"{@}" with apl-ascii
      buffer code: #xE2 #x8D #x9D
        file code: not encodable by coding system iso-latin-1-unix
          display: by this font (glyph code)
    xft:-unknown-unifont-normal-normal-normal-*-12-*-*-*-d-0-
iso10646-1 (#x2359)
------------------------------

In other words emacs sees this as a comment-type char (similar to what
it says for semicolon in elisp buffers

And yet in an elisp buffer the ; to EOL is red
but here it is not.

Any clues?


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2011-01-03  4:29 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-12-29  9:50 How to make font lock work with comments? rusi
2010-12-30  8:43 ` Elena
2010-12-30 21:27   ` Tim X
2010-12-30 14:09 ` Pascal J. Bourguignon
2010-12-30 17:28   ` rusi
2010-12-30 18:35     ` Pascal J. Bourguignon
2011-01-03  4:28   ` Stefan Monnier
2011-01-03  4:29 ` Stefan Monnier

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.