home *** CD-ROM | disk | FTP | other *** search
- x-gateway: rodan.UU.NET from help-lucid-emacs to alt.lucid-emacs.help; Thu, 28 Jan 1993 21:48:26 EST
- Date: Fri, 29 Jan 1993 13:47:23 EST
- From: rwhitby%research.canon.oz.au@lucid.com (Rod Whitby)
- Message-ID: <9301290247.AA12078@bing.research.canon.oz.au>
- Subject: Questions about font_lock.c (buffer-syntactic-context)
- Newsgroups: alt.lucid-emacs.help
- Path: sparky!uunet!wendy-fate.uu.net!help-lucid-emacs
- Sender: help-lucid-emacs-request@lucid.com
- Lines: 80
-
- I have some questions about your intent with font_lock.c, the answers
- to which will allow me to decide whether or not to use font_lock.c as
- the basis of my highlighting package (previously called tek-highlight,
- now called oz-highlight).
-
- 1/ Do you consider comment delimiters to be of context-type `comment'
- or `nil' ?
-
- At the moment, buffer-syntactic-context returns the following values:
-
- ;;comment
- ^^
- ||
- | - `comment'
- - `nil'
-
- Using font-lock.el, the buffer is highlighted from the second `;' to
- the end of the line.
-
- Using regexps, I would highlight from the first `;' to the end of the
- line.
-
- 2/ Do you consider block comment delimiters to be of context-type
- `block-comment' or `nil' ?
-
- At the moment, buffer-syntactic-context returns the following values:
-
- /*block comment*/
- ^^^ ^^
- ||| ||
- ||| | - `block-comment'
- ||| - `block-comment'
- || - `block-comment'
- | - `nil'
- - `nil'
-
- Using font-lock.el, the buffer is highlighted from `b' to the second
- `/'.
-
- Using regexps, I would highlight from the first `/' to the second `/`.
-
- 3/ Do you consider string delimiters to be of context-type `string'
- or `nil' ?
-
- At the moment, buffer-syntactic-context returns the following values:
-
- "string"
- ^^ ^
- || |
- || - `string'
- | - `string'
- - `nil'
-
- Using font-lock.el, the buffer is highlighted from `s' to the second
- `"'.
-
- Using regexps, I would highlight from the first `"' to the second `"`.
-
-
- In my experience with people using my highlighting package under Epoch
- (tek-highlight), they prefer the highlighting I have described as
- "using regexps".
-
- Which type of highlighting do you (eventually) intend to support with
- font-lock.el ?
-
- I realise that the "regexp" form of highlighting may well be very
- difficult to achieve (yes, I've read and understand the complexity of
- font_lock.c), but I'm looking for your intent rather than a
- confirmation of the current implementation.
-
- If you intend to highlight in the method I (and the current users of
- tek-highlight) prefer, then I would allocate my spare time to helping
- achieve that goal with font_lock.c rather than trying to achieve it in
- a separate lisp package.
-
- --------------------------------------------- _--_|\ |
- Rod Whitby (rwhitby@research.canon.oz.au) / \ |
- Canon Information Systems Research Australia \_.--._/ |
- 1 Thomas Holt Drive, North Ryde, N.S.W., 2113. v |
-