]> git.wincent.com - wikitext.git/commitdiff
Add IMG_START and IMG_END token types
authorWincent Colaiuta <win@wincent.com>
Tue, 19 Feb 2008 08:50:56 +0000 (09:50 +0100)
committerWincent Colaiuta <win@wincent.com>
Tue, 19 Feb 2008 08:50:56 +0000 (09:50 +0100)
These will be '{{' and '}}' and will be used for inserting images.

Signed-off-by: Wincent Colaiuta <win@wincent.com>
ext/token.c
ext/token.h

index 119b84fc621517beee9f55843d80f311a7b4b9a1..7446fe5f9e7362e26ae4239ca6ad779679eb057e 100644 (file)
@@ -78,6 +78,8 @@ VALUE Wikitext_parser_token_types(VALUE self)
     SET_TOKEN_TYPE(AMP);
     SET_TOKEN_TYPE(LESS);
     SET_TOKEN_TYPE(GREATER);
+    SET_TOKEN_TYPE(IMG_START);
+    SET_TOKEN_TYPE(IMG_END);
     SET_TOKEN_TYPE(CRLF);
     SET_TOKEN_TYPE(PRINTABLE);
     SET_TOKEN_TYPE(DEFAULT);
index b3dae92691d154ee0748dbc432cdae44a53392ef..8d616441225df5143cb9d4d17615f8445595f1f1 100644 (file)
@@ -84,6 +84,8 @@ enum token_types {
     AMP,
     LESS,
     GREATER,
+    IMG_START,
+    IMG_END,
     CRLF,
     PRINTABLE,
     DEFAULT,