Skip to content

Instantly share code, notes, and snippets.

@rhysd
Created December 1, 2016 06:09
Show Gist options
  • Save rhysd/7a796464a073ea04c85f5c76a6091846 to your computer and use it in GitHub Desktop.
Save rhysd/7a796464a073ea04c85f5c76a6091846 to your computer and use it in GitHub Desktop.
diff --git a/target/elc.c b/target/elc.c
index 80b08c9..030a5f8 100644
--- a/target/elc.c
+++ b/target/elc.c
@@ -12,6 +12,7 @@ void target_js(Module* module);
void target_php(Module* module);
void target_el(Module* module);
void target_vim(Module* module);
+void target_viml(Module* module);
void target_tex(Module* module);
void target_cl(Module* module);
void target_sh(Module* module);
@@ -45,6 +46,8 @@ static target_func_t get_target_func(const char* ext) {
return target_el;
} else if (!strcmp(ext, "vim")) {
return target_vim;
+ } else if (!strcmp(ext, "viml")) {
+ return target_viml;
} else if (!strcmp(ext, "tex")) {
return target_tex;
} else if (!strcmp(ext, "cl")) {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment