bug-a2ps
[Top][All Lists]
Advanced

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

A detail in cpp pretty printing.


From: ere
Subject: A detail in cpp pretty printing.
Date: Tue, 24 Jul 2001 18:47:29 -0400

Hello,

I just submit this as potential improvment to a2ps. When a CPP, C or C++
file contains a line like :

#       include <toto.h>

``include'' is not bold as it is not precede by 0, 1 or more blank but by a
tabulation. I don't know if this is part of the CPP specification, but if so,
you just have to change the cpp.ssh file as follow :

/^#[ 
]*(define|e(l(if|se)|ndif|rror|x)|i(f(|def|ndef)|mport|nclude)|line|pragma|undef)/

by

/^#[ 
\t]*(define|e(l(if|se)|ndif|rror|x)|i(f(|def|ndef)|mport|nclude)|line|pragma|undef)/

or something that means that a tab caracter is allowed between # sign and the
CPP keyword.

Best regards,
Eric Renault
-- 
Cyber security Research Group
Institute for Security Technology Study
Dartmouth College
45 Lyme Road, suite 200
Hanover, NH 03577, USA

Phone : +1 (603) 646 0668
Fax   : +1 (603) 646 0660
Email : address@hidden
Wpage : Will be soon available ! For sure ...



reply via email to

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