From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?UTF-8?Q?Bj=C3=B6rn_Lindqvist?= Newsgroups: gmane.emacs.help Subject: Re: Font-lock of comments using comment tokens, does it work? Date: Thu, 4 Jun 2015 01:37:04 +0200 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1433374641 7497 80.91.229.3 (3 Jun 2015 23:37:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 3 Jun 2015 23:37:21 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Stefan Monnier Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jun 04 01:37:20 2015 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Z0IDm-0005oV-5h for geh-help-gnu-emacs@m.gmane.org; Thu, 04 Jun 2015 01:37:18 +0200 Original-Received: from localhost ([::1]:39543 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z0IDl-0004GH-89 for geh-help-gnu-emacs@m.gmane.org; Wed, 03 Jun 2015 19:37:17 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46404) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z0IDa-0004Fw-Iy for help-gnu-emacs@gnu.org; Wed, 03 Jun 2015 19:37:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z0IDZ-0003Na-IX for help-gnu-emacs@gnu.org; Wed, 03 Jun 2015 19:37:06 -0400 Original-Received: from mail-wg0-x229.google.com ([2a00:1450:400c:c00::229]:33407) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z0IDZ-0003NL-5E for help-gnu-emacs@gnu.org; Wed, 03 Jun 2015 19:37:05 -0400 Original-Received: by wgez8 with SMTP id z8so21151326wge.0 for ; Wed, 03 Jun 2015 16:37:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=4qn6qEqIYW9lhkWeduSmk7hjwj9n5YwHYpz1DOfXEX0=; b=mWPc/nOESYkD89Pl8pfkwnJSs7UWH2JI5KRBZnueG+65m16+I8iPkPEfB3Oe/Kwyy8 9HONkQgK+1xP33WUGNodMwmupS+r0OYVj39f8gnklimcKHUPnapdWgNdf+3UZcRL/qjO ZrylPbFE8EwD97hw04BkDHzNTjGP9rCuE4waHYFiHTAsRGcEkBr9L8qPjTfQFohDHn27 TQ308rxJqOjaAlLOJlWK2u5LNJyRmQ4Vk9wHep292YnBU9NLzdcPAXGtA82g64a6x/+G rY+kgksSoDswhLLVE8mqp1WvjHXucPFTTIsdWyYCZv+TQyqK9y4MDlxPMyEzAyYo+P8l A0zg== X-Received: by 10.194.237.34 with SMTP id uz2mr7163711wjc.155.1433374624356; Wed, 03 Jun 2015 16:37:04 -0700 (PDT) Original-Received: by 10.194.24.167 with HTTP; Wed, 3 Jun 2015 16:37:04 -0700 (PDT) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:400c:c00::229 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:104738 Archived-At: 2015-06-03 21:11 GMT+02:00 Stefan Monnier : >> I have a really complicated font-locking problem I'm trying to solve >> for a major mode. It's like I've tried everything but nothing >> works. Here is the question I asked on Stack Overflow and got some >> help with but it didn't go all the way: > > The answer there gives you the technique to use. AFAICT you only need > to adjust the regexp he used in exmark-syntax-propertize. > > You'll want to read about syntax-tables in the Elisp manual to > understand what the "_" means in that function (for a quick > refresher on which char means what, C-h f modify-syntax-entry RET is > what I use, but you first need to read the Elisp reference to really > understand how that works). If you think you know what it should be changed to, can you tell me? I've tried a dozen different permutations of the regexp and none of them produces the desired result. I've also read the syntactic font-lock and syntax table sections of the manual several times and I still don't get it. (sorry for the double mail) --=20 mvh/best regards Bj=C3=B6rn Lindqvist