[C++-sig] pyste #include format
Scott McKay
skottmckay at gmail.com
Tue Jun 7 18:33:04 CEST 2005
Could this line in pyste.py
context['Include'] = lambda header: infos.CodeInfo('#include
<%s>\n' % header, 'include')
possibly be changed to something like this instead to honour the
existing syntax but also allow you to explicitly specify the include
format?
context['Include'] = infos.Include
with the following addition to infos.py
def Include( header ):
header = header.strip()
if ( header[0] == '"' or header[0] == '<' ) :
CodeInfo('#include %s\n' % header, 'include')
else:
CodeInfo('#include <%s>\n' % header, 'include')
Cheers
Scott
More information about the Cplusplus-sig
mailing list