emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Fixing a bug in pascal-mode


From: Feng Li
Subject: Re: Fixing a bug in pascal-mode
Date: Tue, 08 Apr 2014 00:24:14 +1000
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (windows-nt)

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 <address@hidden> 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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]