* coloring
@ 2000-02-09 0:00 Ehud Lamm
2000-02-09 0:00 ` coloring Ehud Lamm
0 siblings, 1 reply; 2+ messages in thread
From: Ehud Lamm @ 2000-02-09 0:00 UTC (permalink / 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!
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2000-02-09 0:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-02-09 0:00 coloring Ehud Lamm
2000-02-09 0:00 ` coloring Ehud Lamm
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox