aboutsummaryrefslogtreecommitdiffstats
path: root/src/template-parser.h
diff options
context:
space:
mode:
authorRafael G. Martins <rafael@rafaelmartins.eng.br>2016-01-14 03:50:42 +0100
committerRafael G. Martins <rafael@rafaelmartins.eng.br>2016-01-14 03:50:42 +0100
commitf7aa4a3269a21f4d0c83f11a0aef4ccf821ce6e2 (patch)
tree9057cbd2b9eb61ec4bf57996b46d6faaf7844853 /src/template-parser.h
parent5e53ba7406e65b51ec59aad634b6baf7154e1ad3 (diff)
downloadblogc-f7aa4a3269a21f4d0c83f11a0aef4ccf821ce6e2.tar.gz
blogc-f7aa4a3269a21f4d0c83f11a0aef4ccf821ce6e2.tar.bz2
blogc-f7aa4a3269a21f4d0c83f11a0aef4ccf821ce6e2.zip
template-parser: added whitespace cleaners. needs more tests and docs
Diffstat (limited to 'src/template-parser.h')
-rw-r--r--src/template-parser.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/template-parser.h b/src/template-parser.h
index 5add574..6cd2c80 100644
--- a/src/template-parser.h
+++ b/src/template-parser.h
@@ -12,6 +12,11 @@
#include "utils/utils.h"
#include "error.h"
+/*
+ * note: whitespace cleaners are NOT added to ast. we fix strings right during
+ * template parsing. renderer does not need to care about it, for the sake of
+ * simplicity.
+ */
typedef enum {
BLOGC_TEMPLATE_IFDEF_STMT = 1,
BLOGC_TEMPLATE_IFNDEF_STMT,