From: Ehud Lamm <mslamm@mscc.huji.ac.il>
Subject: coloring
Date: 2000/02/09
Date: 2000-02-09T16:21:27+00:00 [thread overview]
Message-ID: <Pine.A41.3.96-heb-2.07.1000209181708.16910A-100000@pluto.mscc.huji.ac.il> (raw)
I just tried the TeX "listings" package, which pretty prints code. It
supports Ada so things were smooth. What annoyed me was that 'class wasn't
displayed in bold - since class isn't a reserved word. This is also the
behviour of AdaGide.
Since I didn't like this behaviour I tried adding "'class" to the list of
reserved words, and it seems to work. So now code like this:
package try_syntax is
type Class is abstract tagged null record;
procedure X(C:Class'Class);
end;
is displayed correctly.
To my eyes this nicer. Perhaps this should also be the behaviour of
AdaGide? Seeing clearly that a routine is class wide seems nice. This is
the kind of advantages a pretty-printer/colorizer should have, it seems to
me - I am not really interested when I edit the code to be merely reminded
what is a reserved word and what isn't.
Ehud Lamm mslamm@mscc.huji.ac.il
http://purl.oclc.org/NET/ehudlamm <== My home on the web
Check it out and subscribe to the E-List- for interesting essays and more!
next reply other threads:[~2000-02-09 0:00 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-02-09 0:00 Ehud Lamm [this message]
2000-02-09 0:00 ` coloring Ehud Lamm
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox