projects
/
platform
/
upstream
/
efl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
376be13
)
elm_code: Trying some markdown syntax, this is complex
author
Andy Williams
<andy@andywilliams.me>
Fri, 3 Nov 2017 21:03:58 +0000
(21:03 +0000)
committer
Andy Williams
<andy@andywilliams.me>
Fri, 3 Nov 2017 21:03:58 +0000
(21:03 +0000)
src/lib/elementary/elm_code_syntax.c
patch
|
blob
|
history
diff --git
a/src/lib/elementary/elm_code_syntax.c
b/src/lib/elementary/elm_code_syntax.c
index
23f4d46
..
4f403be
100644
(file)
--- 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 =
"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;
}