-
Bug
-
Resolution: Fixed
-
Low
-
3.1.0
According to https://confluence.atlassian.com/display/STASHKB/Configuring+syntax+highlighting+for+file+extensions the highlighting for CMake is applied to files with the "makefile" extension. But this is inappropriate.
CMake is used in files with the name "CMakeLists.txt" (case sensitive) and additionally in files with the extensions ".cmake"
Following the instructions to override the file extensions I've added
syntax.highlighter.cmake.extensions=CMakeLists.txt,cmake
to the stash-config.properties file and it appears to work for .cmake files but not for the CMakeLists.txt files. I presume this is because it is trying to match *.CMakeLists.txt which of course fails. Understandably applying CMake syntax to all *.txt files is not desirable. Renaming CMakeLists.txt to *.cmake is also not an option because CMake itself mandates the use of CMakeLists.txt
The default extension for CMake highlighting should be changed to .cmake and additionally there should be some way to apply highlighting based on the full filename and not just the extension.
- mentioned in
-
Page Failed to load
CodeMirror is going to be upgraded in Stash 3.11.0 and this bug will be fixed.