From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Feng Li Newsgroups: gmane.emacs.devel Subject: Re: Fixing a bug in pascal-mode Date: Tue, 08 Apr 2014 00:24:14 +1000 Message-ID: <86txa5gqup.fsf@gmail.com> References: <868urjncwl.fsf@gmail.com> <86ha66aggd.fsf@gmail.com> <53419083.4080901@dancol.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1396880697 1338 80.91.229.3 (7 Apr 2014 14:24:57 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 7 Apr 2014 14:24:57 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Apr 07 16:24:50 2014 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 1WXATi-0004QF-DU for ged-emacs-devel@m.gmane.org; Mon, 07 Apr 2014 16:24:50 +0200 Original-Received: from localhost ([::1]:34973 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WXATh-0005m0-M7 for ged-emacs-devel@m.gmane.org; Mon, 07 Apr 2014 10:24:49 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37628) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WXATT-0005lO-Qq for emacs-devel@gnu.org; Mon, 07 Apr 2014 10:24:47 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WXATN-0002rf-PJ for emacs-devel@gnu.org; Mon, 07 Apr 2014 10:24:35 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:52788) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WXATN-0002rF-IO for emacs-devel@gnu.org; Mon, 07 Apr 2014 10:24:29 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1WXATL-00048I-RG for emacs-devel@gnu.org; Mon, 07 Apr 2014 16:24:27 +0200 Original-Received: from 202.172.124.5 ([202.172.124.5]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 07 Apr 2014 16:24:27 +0200 Original-Received: from fengli by 202.172.124.5 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 07 Apr 2014 16:24:27 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 47 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 202.172.124.5 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (windows-nt) Cancel-Lock: sha1:7QWGPxvnhtpyglVbUXxJqTbipTQ= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 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-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:171326 Archived-At: Here you go. Note that there are 2 bugs and this is just a test case for the second one. This is because the first bug actually stops font lock from completing so you'll only see very little syntax highlighting in the test file. There is no need to add a test case for this as the entire file is a test case. Once the first bug is fixed then the syntax highlighting becomes much richer and then you'll be able to see the second bug. --->8------>8------>8------>8------>8------>8------>8------>8--- diff --git a/test/indent/pascal.pas b/test/indent/pascal.pas index 4b3be7c..0005b95 100644 --- a/test/indent/pascal.pas +++ b/test/indent/pascal.pas @@ -29,6 +29,7 @@ by the GNU General Public License. } // Free-pascal style comment. var x:Char = 12 /* 45; // This /* does not start a comment. var x:Char = (/ 4); // This (/ does not start a comment. +var a_to_b : integer; // 'to' should not be highlighted program CRTDemo; Stefan Monnier writes: >> I'm not sure what kind of testcase do you want. I had a brief look in the >> source tree and didn't see any Pascal (or other languages) syntax >> highlighting testcases under the 'test' directory, which I could use as >> examples to write my testcases for these bugs. > > Just add to test/indent/pascal.pas a sample piece of Pascal code > where the bug shows up. > > > Stefan > > -- Feng Li