From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Nikolaj Schumacher Newsgroups: gmane.emacs.help Subject: Re: Highlight parent if--else Date: Thu, 31 Jul 2008 10:59:09 +0200 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1217495007 27710 80.91.229.12 (31 Jul 2008 09:03:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 31 Jul 2008 09:03:27 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Xah Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jul 31 11:04:17 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KOU52-000051-FG for geh-help-gnu-emacs@m.gmane.org; Thu, 31 Jul 2008 11:04:16 +0200 Original-Received: from localhost ([127.0.0.1]:39839 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KOU48-0002jw-1B for geh-help-gnu-emacs@m.gmane.org; Thu, 31 Jul 2008 05:03:20 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KOU24-0001tD-TZ for help-gnu-emacs@gnu.org; Thu, 31 Jul 2008 05:01:13 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KOU20-0001sK-U4 for help-gnu-emacs@gnu.org; Thu, 31 Jul 2008 05:01:12 -0400 Original-Received: from [199.232.76.173] (port=48283 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KOU20-0001s8-G7 for help-gnu-emacs@gnu.org; Thu, 31 Jul 2008 05:01:08 -0400 Original-Received: from fmmailgate03.web.de ([217.72.192.234]:35581) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KOU20-00079W-1P for help-gnu-emacs@gnu.org; Thu, 31 Jul 2008 05:01:08 -0400 Original-Received: from smtp08.web.de (fmsmtp08.dlan.cinetic.de [172.20.5.216]) by fmmailgate03.web.de (Postfix) with ESMTP id 11BA1E599A29; Thu, 31 Jul 2008 10:59:55 +0200 (CEST) Original-Received: from [136.199.55.225] (helo=aragorn.uni-trier.de) by smtp08.web.de with asmtp (WEB.DE 4.109 #226) id 1KOU0o-0001To-00; Thu, 31 Jul 2008 10:59:54 +0200 In-Reply-To: (Xah's message of "Thu\, 31 Jul 2008 01\:12\:50 -0700 \(PDT\)") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux) X-Sender: n_schumacher@web.de X-Provags-ID: V01U2FsdGVkX19jrAVPis/UGUV/v9kYFb7KIxOa0kIr0QBEjKVy l4hVembH7xV8XDSOos4xv5W28thk9dH4kU4ddgvFUua9q2Aybf pzUOcq4M7FBP+Kfs4P3w== X-detected-kernel: by monty-python.gnu.org: Linux 2.4-2.6 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:56074 Archived-At: Xah wrote: > On Jul 30, 6:30 pm, "Will Chang" wrote: >> Can we highlight IF, ELSE END IF just like highlight-parentheses? > > However, it is possible to write one that does that by using elisp's > syntax table. I don't think so. Syntax tables can only match single characters. One would have to write versions of `up-list' and maybe `forward-sexp'. The rest can be done with existing code. regards, Nikolaj Schumacher