elm_code: Trying some markdown syntax, this is complex

This commit is contained in:
Andy Williams 2017-11-03 21:03:58 +00:00
parent 376be13f46
commit 2b3e462858
1 changed files with 12 additions and 0 deletions

View File

@ -80,6 +80,16 @@ static Elm_Code_Syntax _elm_code_syntax_eo =
"implements", "constructors", "get", "set", "keys", "values", "true", "false", "null"}
};
static Elm_Code_Syntax _elm_code_syntax_md =
{
"()[]*+-_=#.>!:\\`",
"",
NULL,
NULL,
"<!--",
"-->",
{}
};
EAPI Elm_Code_Syntax *
elm_code_syntax_for_mime_get(const char *mime)
@ -94,6 +104,8 @@ elm_code_syntax_for_mime_get(const char *mime)
return &_elm_code_syntax_py;
if (!strcmp("text/x-eolian", mime))
return &_elm_code_syntax_eo;
if (!strcmp("text/markdown", mime))
return &_elm_code_syntax_md;
return NULL;
}