summaryrefslogtreecommitdiff
path: root/src/lib/elementary
diff options
context:
space:
mode:
authorAndy Williams <andy@andywilliams.me>2017-11-03 21:03:58 +0000
committerAndy Williams <andy@andywilliams.me>2017-11-03 21:03:58 +0000
commit2b3e462858b84a34d37497fb3cc0a9de588c6c84 (patch)
tree769e50e318ccec4e42d34342cad8e1cd28ef98d2 /src/lib/elementary
parent376be13f4632ba7a8372a018b2d2734828b9856f (diff)
elm_code: Trying some markdown syntax, this is complex
Diffstat (limited to 'src/lib/elementary')
-rw-r--r--src/lib/elementary/elm_code_syntax.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/lib/elementary/elm_code_syntax.c b/src/lib/elementary/elm_code_syntax.c
index 23f4d464de..4f403be279 100644
--- a/src/lib/elementary/elm_code_syntax.c
+++ b/src/lib/elementary/elm_code_syntax.c
@@ -80,6 +80,16 @@ static Elm_Code_Syntax _elm_code_syntax_eo =
80 "implements", "constructors", "get", "set", "keys", "values", "true", "false", "null"} 80 "implements", "constructors", "get", "set", "keys", "values", "true", "false", "null"}
81}; 81};
82 82
83static Elm_Code_Syntax _elm_code_syntax_md =
84{
85 "()[]*+-_=#.>!:\\`",
86 "",
87 NULL,
88 NULL,
89 "<!--",
90 "-->",
91 {}
92};
83 93
84EAPI Elm_Code_Syntax * 94EAPI Elm_Code_Syntax *
85elm_code_syntax_for_mime_get(const char *mime) 95elm_code_syntax_for_mime_get(const char *mime)
@@ -94,6 +104,8 @@ elm_code_syntax_for_mime_get(const char *mime)
94 return &_elm_code_syntax_py; 104 return &_elm_code_syntax_py;
95 if (!strcmp("text/x-eolian", mime)) 105 if (!strcmp("text/x-eolian", mime))
96 return &_elm_code_syntax_eo; 106 return &_elm_code_syntax_eo;
107 if (!strcmp("text/markdown", mime))
108 return &_elm_code_syntax_md;
97 109
98 return NULL; 110 return NULL;
99} 111}