Menu

#164 Specifying default language for file extensions

0.61
closed
nobody
5
2014-09-07
2012-09-26
No

It would be nice if there were the ability to specify language associations with an arbitrary file extension in the configuration file.

for example,
file_ext CPP C cxx CH

would associate the *.C, *.cxx, and *.CH file extensions with the C++ language. This would remove the requirement of having to pass -l CPP on certain file extensions, which is especially beneficial if the files are of mixed language type.

Discussion

  • Ben Gardner

    Ben Gardner - 2014-09-07
    • status: open --> closed
    • Group: --> 0.61
     
  • Ben Gardner

    Ben Gardner - 2014-09-07

    I added a file_ext config option, as requested.

    However, since it uses 'endswith' to match, the dot must be included.
    file_ext CPP .C .cxx .CH