emacs-devel
[Top][All Lists]
Advanced

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

Re: parse-partial-sexp parses only Lisp?


From: David Hansen
Subject: Re: parse-partial-sexp parses only Lisp?
Date: Sat, 05 Apr 2008 22:42:22 +0200
User-agent: Gnus/5.110007 (No Gnus v0.7) Emacs/23.0.60 (gnu/linux)

On Wed, 02 Apr 2008 19:58:18 +0200 Lennart Borgman wrote:

> I thought that perhaps the comment delimiters where involved. The
> syntax tables as above seems to be able to take care of C style
> comments (max 2 chars in delimeters), but it can not handle html
> comments AFAICS.
>
> I guess then parse-partial-sexp can not return info about html
> comments, right? Can syntax-pps do that? (The doc string for
> syntax-ppss says the return values are the same as for
> parse-partial-sexp.)

You can use `font-lock-syntactic-keywords' and
`parse-sexp-lookup-properties'.

BTW, in some source file I read that font-lock-syntactic-keywords should
be made independent of font-lock.  Is there anything planned in this
direction?

I think syntax-ppss does the same as parse-partial-sexp except that it
automatically caches a state.

David





reply via email to

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