summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlastair Poole <netstar@gmail.com>2018-09-11 12:22:34 +0100
committerAlastair Poole <netstar@gmail.com>2018-09-11 12:39:52 +0100
commit2f2088c03e4ee163e02dd23acdf99cde4e51aa2e (patch)
tree5e1f58d6b523b31ea151f35dc9c9d9bd2dbb23ff
parentd98b0edf14ec6e20e1a4f63dba735b69bf5c9a32 (diff)
elm_code: Make sure we handle python3 mime type.
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
-rw-r--r--src/lib/elementary/elm_code_syntax.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/elementary/elm_code_syntax.c b/src/lib/elementary/elm_code_syntax.c
index e1bd46f..369aa12 100644
--- a/src/lib/elementary/elm_code_syntax.c
+++ b/src/lib/elementary/elm_code_syntax.c
@@ -143,7 +143,7 @@ elm_code_syntax_for_mime_get(const char *mime)
143 return &_elm_code_syntax_c; 143 return &_elm_code_syntax_c;
144 if (!strcmp("text/rust", mime)) 144 if (!strcmp("text/rust", mime))
145 return &_elm_code_syntax_rust; 145 return &_elm_code_syntax_rust;
146 if (!strcmp("text/x-python", mime)) 146 if (!strcmp("text/x-python", mime) || !strcmp("text/x-python3", mime))
147 return &_elm_code_syntax_py; 147 return &_elm_code_syntax_py;
148 if (!strcmp("text/x-eolian", mime)) 148 if (!strcmp("text/x-eolian", mime))
149 return &_elm_code_syntax_eo; 149 return &_elm_code_syntax_eo;