elm_code: Make sure we handle python3 mime type.
authorAlastair Poole <netstar@gmail.com>
Tue, 11 Sep 2018 11:22:34 +0000 (12:22 +0100)
committerYoungbok Shin <youngb.shin@samsung.com>
Tue, 18 Sep 2018 08:39:42 +0000 (17:39 +0900)
Summary:
Let's not miss python3 mimetype when setting up
syntax highlighting.

Reviewers: ajwillia.ms

Reviewed By: ajwillia.ms

Subscribers: cedric, #reviewers, #committers

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D7000

src/lib/elementary/elm_code_syntax.c

index e1bd46f..369aa12 100644 (file)
@@ -143,7 +143,7 @@ elm_code_syntax_for_mime_get(const char *mime)
      return &_elm_code_syntax_c;
    if (!strcmp("text/rust", mime))
      return &_elm_code_syntax_rust;
-   if (!strcmp("text/x-python", mime))
+   if (!strcmp("text/x-python", mime) || !strcmp("text/x-python3", mime))
      return &_elm_code_syntax_py;
    if (!strcmp("text/x-eolian", mime))
      return &_elm_code_syntax_eo;