aboutsummaryrefslogtreecommitdiffstats
path: root/src/directives.c
diff options
context:
space:
mode:
authorRafael G. Martins <rafael@rafaelmartins.eng.br>2015-11-02 03:58:09 -0200
committerRafael G. Martins <rafael@rafaelmartins.eng.br>2015-11-02 03:58:09 -0200
commit1faa52052624e7c03256df0c63c43f5d40ddb57a (patch)
treeff53b56d31231f9f05fd3ff9f518f7f90f90bea0 /src/directives.c
parent5b869700957af87f672f4be6336a8f587450ec14 (diff)
downloadblogc-1faa52052624e7c03256df0c63c43f5d40ddb57a.tar.gz
blogc-1faa52052624e7c03256df0c63c43f5d40ddb57a.tar.bz2
blogc-1faa52052624e7c03256df0c63c43f5d40ddb57a.zip
content-parser: added basic rst-like directives support
this patch adds support to something similar to reStructuredText directives [1]. the directive loader isn't implemented yet. also, the current implementation is stricter and differs a lot from the reStructuredText spec. documentation pending. this patch also fixes a few old parser bugs. [1] http://docutils.sourceforge.net/docs/ref/rst/directives.html
Diffstat (limited to 'src/directives.c')
-rw-r--r--src/directives.c21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/directives.c b/src/directives.c
new file mode 100644
index 0000000..7a6b47f
--- /dev/null
+++ b/src/directives.c
@@ -0,0 +1,21 @@
+/*
+ * blogc: A blog compiler.
+ * Copyright (C) 2015 Rafael G. Martins <rafael@rafaelmartins.eng.br>
+ *
+ * This program can be distributed under the terms of the BSD License.
+ * See the file LICENSE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif /* HAVE_CONFIG_H */
+
+#include "utils/utils.h"
+
+
+char*
+blogc_directive_loader(const char *name, const char *argument, b_trie_t *params)
+{
+ // TODO: implement me!
+ return b_strdup("TODO\n");
+}