Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for .h (C/C++ Header) files #64

Open
sulphur2 opened this issue Oct 3, 2012 · 1 comment
Open

Support for .h (C/C++ Header) files #64

sulphur2 opened this issue Oct 3, 2012 · 1 comment

Comments

@sulphur2
Copy link

sulphur2 commented Oct 3, 2012

Thanks! For the excellent port. It works fantastic with various sources. However, when I try to generate docs for .h files, I get the following error:

[jupiter@localhost app]$ $pycco core/*.h
Traceback (most recent call last):
File "/usr/bin/pycco", line 9, in
load_entry_point('Pycco==0.3.0', 'console_scripts', 'pycco')()
File "/usr/lib/python2.6/site-packages/pycco/main.py", line 480, in main
process(sources, outdir=opts.outdir, preserve_paths=opts.paths)
File "/usr/lib/python2.6/site-packages/pycco/main.py", line 417, in process
next_file()
File "/usr/lib/python2.6/site-packages/pycco/main.py", line 411, in next_file
f.write(generate_documentation(s, preserve_paths=preserve_paths, outdir=outdir))
File "/usr/lib/python2.6/site-packages/pycco/main.py", line 46, in generate_documentation
sections = parse(source, fh.read())
File "/usr/lib/python2.6/site-packages/pycco/main.py", line 66, in parse
language = get_language(source)
File "/usr/lib/python2.6/site-packages/pycco/main.py", line 324, in get_language
return languages[ source[source.rindex("."):] ]
KeyError: '.h'

@goosemo
Copy link
Contributor

goosemo commented Mar 26, 2016

I think you were on an older version, I'm unable to recreate at this time. Likely this issue can be closed. Would you mind confirming @sulphur2 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants