From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Hansen Newsgroups: gmane.emacs.devel Subject: Re: parse-partial-sexp parses only Lisp? Date: Sat, 05 Apr 2008 22:42:22 +0200 Organization: disorganized Message-ID: <87od8oav9t.fsf@localhorst.mine.nu> References: <47F2B5D9.8060207@gmail.com> <47F347CD.1030707@gmx.at> <47F39F6D.7060100@gmail.com> <47F3BB7C.1010608@gmx.at> <47F3C93A.2090009@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1207428920 21848 80.91.229.12 (5 Apr 2008 20:55:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 5 Apr 2008 20:55:20 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Apr 05 22:55:52 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JiFQW-0007Bk-9G for ged-emacs-devel@m.gmane.org; Sat, 05 Apr 2008 22:55:52 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JiFPt-0004vz-GW for ged-emacs-devel@m.gmane.org; Sat, 05 Apr 2008 16:55:13 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JiFPn-0004tt-FJ for emacs-devel@gnu.org; Sat, 05 Apr 2008 16:55:07 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JiFPm-0004s2-3Q for emacs-devel@gnu.org; Sat, 05 Apr 2008 16:55:07 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JiFPl-0004rs-Q0 for emacs-devel@gnu.org; Sat, 05 Apr 2008 16:55:05 -0400 Original-Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JiFPl-0008HR-Dx for emacs-devel@gnu.org; Sat, 05 Apr 2008 16:55:05 -0400 Original-Received: from root by ciao.gmane.org with local (Exim 4.43) id 1JiFPi-0005x0-3f for emacs-devel@gnu.org; Sat, 05 Apr 2008 20:55:02 +0000 Original-Received: from e178058079.adsl.alicedsl.de ([85.178.58.79]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 05 Apr 2008 20:55:02 +0000 Original-Received: from david.hansen by e178058079.adsl.alicedsl.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 05 Apr 2008 20:55:02 +0000 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: emacs-devel@gnu.org Original-Lines: 23 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: e178058079.adsl.alicedsl.de Mail-Copies-To: nobody User-Agent: Gnus/5.110007 (No Gnus v0.7) Emacs/23.0.60 (gnu/linux) Cancel-Lock: sha1:YMBl1TiP7Stnb+x6QLhx4ODGxZ8= X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:94445 Archived-At: 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