bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#1912: Reserved word "goto" not highlighted in Ada-mode


From: Erik
Subject: bug#1912: Reserved word "goto" not highlighted in Ada-mode
Date: Thu, 15 Jan 2009 14:10:28 +0100
User-agent: Thunderbird 2.0.0.19 (X11/20090102)

Juanma Barranquero skrev:
> On Thu, Jan 15, 2009 at 08:51, Erik <esigra@gmail.com> wrote:
>   
>> The reserved word "goto" not highlighted in Ada-mode.
>>     
>
> Which version of Emacs and ada-mode are you using? I see "goto"
> highlighted with font-lock-keyword-face, as expected.
>
>   

GNU Emacs 22.3.1 (i686-pc-linux-gnu, X toolkit, Xaw3d scroll bars)
 of 2008-11-15 on localhost

(Gentoo package app-editors/emacs-22.3)

> Can you send a fragment of Ada code showing the problem?
>   

Execute "emacs prov.adb" (in a directory without such a file). Then
write these lines:
procedure Prov
is
begin
    goto done

The reserved words "procedure" "is" and "begin" get highlighted as soon
as they are written. But "goto" is only highlighted if
1. the file is saved at this point,
2. a ';' is written, or
3. a newline is written

Compare this with the similar example
procedure Prov
is
begin
    raise done

Here the reserved word "raise" is highlighted immediately (unlike
"goto"). (But the identifier "done" is not highlighted immediately,
which looks like another bug.)






reply via email to

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