Skip to content

Commit 2b14a2f

Browse files
committed
Enabled syntax highlighting for CMake programming language.
1 parent 9d9b440 commit 2b14a2f

File tree

8 files changed

+129
-80
lines changed

8 files changed

+129
-80
lines changed

FileList.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,7 @@ bool IsTextFile(CString strFilePath)
132132
(_tcsicmp(lpszExtension, _T(".aspx")) == 0) ||
133133
(_tcsicmp(lpszExtension, _T(".bat")) == 0) ||
134134
(_tcsicmp(lpszExtension, _T(".c")) == 0) ||
135+
(_tcsicmp(lpszExtension, _T(".cmake")) == 0) ||
135136
(_tcsicmp(lpszExtension, _T(".cs")) == 0) ||
136137
(_tcsicmp(lpszExtension, _T(".css")) == 0) ||
137138
(_tcsicmp(lpszExtension, _T(".cpp")) == 0) ||
@@ -157,6 +158,8 @@ bool IsTextFile(CString strFilePath)
157158
(_tcsicmp(lpszExtension, _T(".php")) == 0) ||
158159
(_tcsicmp(lpszExtension, _T(".txt")) == 0) ||
159160
(_tcsicmp(lpszExtension, _T(".xml")) == 0) ||
161+
((_tcsicmp(lpszFileName, _T("cmakelists")) == 0) && (_tcsicmp(lpszExtension, _T(".txt")) == 0)) ||
162+
(_tcsicmp(lpszFileName, _T("makefile")) == 0) ||
160163
(_tcsicmp(lpszExtension, _T("")) == 0))
161164
{
162165
return true;

IntelliFile.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ <h2>Supported Programming Languages</h2>
6969
<li>Batch</li>
7070
<li>C/C++</li>
7171
<li>C#</li>
72+
<li>CMake</li>
7273
<li>CSS</li>
7374
<li>Groovy</li>
7475
<li>HTML</li>

0 commit comments

Comments
 (0)