GNU bug report logs -
#1912
Reserved word "goto" not highlighted in Ada-mode
Previous Next
Reported by: Erik <esigra <at> gmail.com>
Date: Thu, 15 Jan 2009 07:55:03 UTC
Severity: normal
Done: Stephen Leake <stephen_leake <at> stephe-leake.org>
Bug is archived. No further changes may be made.
Full log
Message #17 received at 1912 <at> emacsbugs.donarmstrong.com (full text, mbox):
Juanma Barranquero skrev:
> On Thu, Jan 15, 2009 at 08:51, Erik <esigra <at> 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.)
This bug report was last modified 15 years and 189 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.