I recommend changing 'pp' file extension to process [http://puppetlabs.com/ puppet]. It is currently tied to pascal (less frequently used I would bet).
The puppet_count script would be
generic_count '#' "$@"
In general, sloccount tries to figure out automagically the type of file it's dealing with. Can you suggest any heuristics that are more likely to distinguish them?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Puppet is a fairly simple language that would be hard to distingush by file content. A potential soloution is to process it as puppet after the pascal_count program decides it's not pascal. I have not dug into your code yet, so I have don't know if that is viable yet. The problem is both of the following are valid .pp files
Thanks for the suggestion!
In general, sloccount tries to figure out automagically the type of file it's dealing with. Can you suggest any heuristics that are more likely to distinguish them?
Puppet is a fairly simple language that would be hard to distingush by file content. A potential soloution is to process it as puppet after the pascal_count program decides it's not pascal. I have not dug into your code yet, so I have don't know if that is viable yet. The problem is both of the following are valid .pp files