vs.language.cmake icon indicating copy to clipboard operation
vs.language.cmake copied to clipboard

Highlight `.in` templates used by configure_file

Open dirk-thomas opened this issue 6 years ago • 3 comments

Templates expanded by configure_file are usually using the file extension .in. It would be great if this package could also highlight those.

In e.g. Atom the secondary file extension decides what language the expanded template represents. Often that is CMake code itself and then using the extension .cmake.in (see https://github.com/lucas-clemente/language-cmake/blob/8bb2712c78ed6126a4cbd9e68548e4078734abc2/grammars/cmake%20template%20cmake.cson#L2).

If this feature would be accepted I might be able to work on a pull request for it. I just wanted to gather feedback on the idea first.

dirk-thomas avatar Jun 15 '18 00:06 dirk-thomas

@twxs Friendly ping. Any feedback on this would be appreciated.

dirk-thomas avatar Oct 12 '18 16:10 dirk-thomas

Hmmm never mind? Maybe I had some older version or my file was not called correctly, it is working now.

====== Would appreciate if this feature were implemented. Currently working with my first "CMakeLists.txt.in" and it's a pain to not get the highlighting.

Maybe you know if there is a "files.associations" that works temporarily as a work-around? I have not been able to find one.

katjie avatar Nov 16 '18 08:11 katjie

as a warkaround, you can add the file associationshere : https://github.com/twxs/vs.language.cmake/blob/master/package.json#L43

twxs avatar Nov 16 '18 09:11 twxs