diff --git a/icons/c.svg b/icons/c.svg new file mode 100644 index 0000000..d29961d --- /dev/null +++ b/icons/c.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/cpp.svg b/icons/cpp.svg index 5b6d1c6..10ea0fb 100644 --- a/icons/cpp.svg +++ b/icons/cpp.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/package.json b/package.json index 3a28abf..1c315cf 100644 --- a/package.json +++ b/package.json @@ -23,12 +23,11 @@ }, "scripts": { "build": "npm run icons && npm run build-themes", - "icons": "npm run remove-icons && npm run minimize-icons && npm run build-icons && npm run minimize-json", "minimize-icons": "svgo -f src/icons/svgs -o icons", "minimize-json": "json-minify themes/.material-theme-icons.tmp > themes/Material-Theme-Icons.json && npm run remove-icons-tmp", "remove-icons": "rimraf icons && rimraf themes/Material-Theme-Icons.json", "remove-icons-tmp": "rimraf themes/.material-theme-icons.tmp", - "build-icons": "gulp build:icons", + "build-icons": "npm run remove-icons && npm run minimize-icons && gulp build:icons && npm run minimize-json", "build-themes": "gulp build:themes", "release": "npm run bump && npm run changelog", "changelog": "gulp changelog", diff --git a/src/icons/partials/fileExtensions.js b/src/icons/partials/fileExtensions.js index c851c63..092994b 100644 --- a/src/icons/partials/fileExtensions.js +++ b/src/icons/partials/fileExtensions.js @@ -114,11 +114,14 @@ "c": "_file_c", "h": "_file_c", "m": "_file_c", - "cc": "_file_c++", - "cpp": "_file_c++", - "hpp": "_file_c++", - "mm": "_file_c++", - "cxx": "_file_c++", + "cc": "_file_cpp", + "cpp": "_file_cpp", + "c++": "_file_cpp", + "hpp": "_file_cpp", + "mm": "_file_cpp", + "cxx": "_file_cpp", + "c": "_file_cpp", + "cc": "_file_cpp", "go": "_file_go", "py": "_file_python", "url": "_file_url", diff --git a/src/icons/svgs/c.svg b/src/icons/svgs/c.svg new file mode 100644 index 0000000..f088643 --- /dev/null +++ b/src/icons/svgs/c.svg @@ -0,0 +1,3 @@ + + + diff --git a/src/icons/svgs/cpp.svg b/src/icons/svgs/cpp.svg index fc88293..1395b2e 100755 --- a/src/icons/svgs/cpp.svg +++ b/src/icons/svgs/cpp.svg @@ -1,54 +1,6 @@ - - - - - - image/svg+xml - - - - - - - + + + + + diff --git a/test/source.c b/test/source.c new file mode 100644 index 0000000..e69de29 diff --git a/test/source.c++ b/test/source.c++ new file mode 100644 index 0000000..e69de29 diff --git a/test/source.cc b/test/source.cc new file mode 100644 index 0000000..e69de29