vs.language.cmake
vs.language.cmake copied to clipboard
Highlight `.in` templates used by configure_file
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.
@twxs Friendly ping. Any feedback on this would be appreciated.
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.
as a warkaround, you can add the file associationshere : https://github.com/twxs/vs.language.cmake/blob/master/package.json#L43