ajwillia-ms pushed a commit to branch master.

http://git.enlightenment.org/tools/edi.git/commit/?id=0b5fa028bb85e21947875898a1a0c3cca2b9dfed

commit 0b5fa028bb85e21947875898a1a0c3cca2b9dfed
Author: Kelly Wilson <[email protected]>
Date:   Thu Feb 5 18:27:02 2015 -0700

    Content Provider: add new types
    
    Add C++ .cpp and .hpp file types to our mime type detection function.
---
 src/bin/edi_content_provider.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/bin/edi_content_provider.c b/src/bin/edi_content_provider.c
index f17a9ac..d31f57a 100644
--- a/src/bin/edi_content_provider.c
+++ b/src/bin/edi_content_provider.c
@@ -66,6 +66,8 @@ Edi_Content_Provider *edi_content_provider_for_mime_get(const 
char *mime)
    else if (!strcasecmp(mime, "text/x-chdr") || !strcasecmp(mime, 
"text/x-csrc")
             || !strcasecmp(mime, "text/x-modelica"))
      id = "text"; // TODO make a code view
+   else if (!strcasecmp(mime, "text/x-c++src") || !strcasecmp(mime, 
"text/x-c++hdr"))
+     id = "text";
    else if (!strncasecmp(mime, "image/", 6))
      id = "image";
    else if (!strcasecmp(mime, "text/x-diff") || !strcasecmp(mime, 
"text/x-patch"))

-- 


Reply via email to