From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.devel Subject: Re: font-lock-syntactic-keywords obsolet? Date: Mon, 20 Jun 2016 14:50:49 +0300 Message-ID: <902bd3df-9114-2c76-4dfe-da0e50e8613f@yandex.ru> References: <20160619133143.GA5875@acm.fritz.box> <20160619145934.GC5875@acm.fritz.box> <6bc7b3bc-ddb7-c041-9f68-f8b5faeca63b@yandex.ru> <20160619151836.GE5875@acm.fritz.box> <1d4c62e6-905b-4a51-28b8-e68169fb3269@yandex.ru> <20160619153455.GG5875@acm.fritz.box> <11c988f0-94c0-40dd-b9cd-5a5e27028b63@yandex.ru> <20160619171531.GH5875@acm.fritz.box> <751427e7-f305-7790-99f5-dea230d8e6c4@yandex.ru> <20160620102219.GA3166@acm.fritz.box> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1466423502 32702 80.91.229.3 (20 Jun 2016 11:51:42 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 20 Jun 2016 11:51:42 +0000 (UTC) Cc: Noam Postavsky , emacs-devel@gnu.org To: Alan Mackenzie Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jun 20 13:51:37 2016 Return-path: Envelope-to: ged-emacs-devel@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 1bExjr-00055B-Dr for ged-emacs-devel@m.gmane.org; Mon, 20 Jun 2016 13:51:35 +0200 Original-Received: from localhost ([::1]:42949 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bExjl-0000tq-Ei for ged-emacs-devel@m.gmane.org; Mon, 20 Jun 2016 07:51:29 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37235) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bExjE-0000tS-OO for emacs-devel@gnu.org; Mon, 20 Jun 2016 07:50:57 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bExjB-0002oF-LY for emacs-devel@gnu.org; Mon, 20 Jun 2016 07:50:56 -0400 Original-Received: from mail-wm0-x235.google.com ([2a00:1450:400c:c09::235]:36654) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bExjB-0002o2-F3 for emacs-devel@gnu.org; Mon, 20 Jun 2016 07:50:53 -0400 Original-Received: by mail-wm0-x235.google.com with SMTP id f126so65949452wma.1 for ; Mon, 20 Jun 2016 04:50:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:subject:to:references:cc:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding; bh=2WYr5bth3WS+ySFCpXW+P7Bcbb6OjsJvTV2i5GaP/xo=; b=Tb7L+kGO2C9euHFzDIPP7JAkFNxCx8PWHeZFFhr0lJLSFlrHFIPBACyTVpgNmRxKQI VjIDkkwKVuO7BVbHd9W6ePiNZjSsMP9onqqRPpD98jWTQWOyvZ5UpPRiuQUBxo1ZphBA LtBTFXwP+TzSkEfppL9ibzRefCVlB+nUrV7mEP7kUobO3f0PbGhk6BiuPrui/DQb14kZ Qju5odsTQ3EJdN1q0VC7W8OvAngnldKgH0XZDCVJLO2wy59WOJ9Z6WnCpSK5O+If5kUk M7m9K8MgNiCiOmnltfPIW90d/xCzId4DGjwGJz47X+JvNZBQb3hJnonfAil/0SsH8878 FmaA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:subject:to:references:cc:from:message-id :date:user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=2WYr5bth3WS+ySFCpXW+P7Bcbb6OjsJvTV2i5GaP/xo=; b=aEsWBDwBLZ2dJD7375vtLEZz5exABg6V38MTdo9/oxBCY0OdG4FjTT5MFx8OHyTEAt xc/vkxRSwj1camARZrL2WLl5mi8gaz22ZzJFSsgTwiSpxuK7743yV5yNycLqgUvlwjGO 5yO4iGwi4uH/nKSxeBOk7JCLfcz2m4FMKYu2fqpSoK0ecYRzPD7kSxZ3fnNcQMYI3dpa EXBYswG5LoB550DPOzdzCii+z0RxaDYNFhxCCxVQE/Xm3VtSHrNojHGtwRfZ+AwlEUXO ZpvPpQE/1NyOlTXhqVU0REJ2tD3UCrPoNxmgM8TpEwOu5RExVrCv0o3lw0Bp17I/KX1J tt2A== X-Gm-Message-State: ALyK8tIP6W+hibWU5BMPbk2xdO6Ili7Sl0A7a0mZ/lhmEx1XWBCqq8pKyT2iiA1E+BzA5Q== X-Received: by 10.194.133.135 with SMTP id pc7mr14389814wjb.49.1466423451972; Mon, 20 Jun 2016 04:50:51 -0700 (PDT) Original-Received: from [192.168.1.2] ([185.105.173.135]) by smtp.googlemail.com with ESMTPSA id a129sm3180448wma.2.2016.06.20.04.50.50 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 20 Jun 2016 04:50:51 -0700 (PDT) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.2 In-Reply-To: <20160620102219.GA3166@acm.fritz.box> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2a00:1450:400c:c09::235 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:204578 Archived-At: On 06/20/2016 01:22 PM, Alan Mackenzie wrote: > The code for raw strings is actually very new - it was only committed a > week and a half ago. By their very nature, unterminated raw strings are > a problem, since the terminating delimiter could occur anywhere later in > the buffer. The trick has got to be to apply some artificial limit for > after-change processing until that terminating delimiter is inserted. So what if you have a literal that's longer than your chosen limit? A s-p-f could handle that. Your solution is basically a kludge. You're lucky raw strings are rare in C++ now; in many other languages, a normal string is not limited to a single line.