Skip to content

Commit 3c370d8

Browse files
committed
ino is now alias for C++ language
1 parent 13eff9c commit 3c370d8

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

lib/file-type-icons.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* Additional file types */
22
.fileManager LI.ext-c:before {background-position: -48px 0}
3-
.fileManager LI.ext-cpp:before {background-position: -64px 0}
3+
.fileManager LI.ext-cpp:before, .fileManager LI.ext-ino:before {background-position: -64px 0}
44
.fileManager LI.ext-cs:before {background-position: -80px 0}
55
.fileManager LI.ext-coffee:before {background-position: -96px 0}
66
.fileManager LI.ext-css:before {background-position: -112px 0}

processes/on-editor-load.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@
4646
: fileExt == "jl" ? "text/x-julia"
4747
: fileExt == "c" ? "text/x-csrc"
4848
: fileExt == "cpp" ? "text/x-c++src"
49+
: fileExt == "ino" ? "text/x-c++src"
4950
: fileExt == "cs" ? "text/x-csharp"
5051
: fileExt == "go" ? "text/x-go"
5152
: fileExt == "lua" ? "text/x-lua"
@@ -158,7 +159,7 @@
158159
fileExt = fileName.split(".");
159160
fileExt = fileExt[fileExt.length-1];
160161
}
161-
if (thisCM && fileName && ["js","coffee","css","less","sql","erl","yaml","java","jl","c","cpp","cs","go","lua","pl","rs","scss"].indexOf(fileExt)==-1) {
162+
if (thisCM && fileName && ["js","coffee","css","less","sql","erl","yaml","java","jl","c","cpp","ino","cs","go","lua","pl","rs","scss"].indexOf(fileExt)==-1) {
162163
testToken = thisCM.getTokenAt({line:thisCM.lineCount(),ch:thisCM.lineInfo(thisCM.lineCount()-1).text.length});
163164
nestOK = testToken.type && testToken.type.indexOf("error") == -1 ? true : false;
164165
}
@@ -203,6 +204,7 @@
203204
: fileExt == "jl" ? "Julia"
204205
: fileExt == "c" ? "C"
205206
: fileExt == "cpp" ? "C++"
207+
: fileExt == "ino" ? "C++"
206208
: fileExt == "cs" ? "C#"
207209
: fileExt == "go" ? "Go"
208210
: fileExt == "lua" ? "Lua"

0 commit comments

Comments
 (0)