From 71ee935f7bc939b70fac38b0fe6c7a1f188cd29c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?b=CA=B0edoh=E2=82=82=20sw=C3=A9?= Date: Tue, 11 Jun 2024 16:15:09 +0500 Subject: [PATCH] Rename def to #def --- src/compile.c | 2 +- src/process.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/compile.c b/src/compile.c index 50fd27a..3b3defd 100644 --- a/src/compile.c +++ b/src/compile.c @@ -237,7 +237,7 @@ char* compile(tSyntaxElement* syntaxtree) { tSyntaxElement* token = syntaxtree->content.syntax; - if (strcmp(token->content.string, "def") == 0) { + if (strcmp(token->content.string, "#def") == 0) { } else if (strcmp(token->content.string, "set") == 0) { compile_enter_tag(&result); diff --git a/src/process.c b/src/process.c index 402b12e..9e9bfd4 100644 --- a/src/process.c +++ b/src/process.c @@ -66,7 +66,7 @@ bool process_find(tSyntaxElement* tree, tProcessingData** p_pdata) { tSyntaxElement* token = tree->content.syntax; - if (strcmp(token->content.string,"def") == 0 && + if (strcmp(token->content.string,"#def") == 0 && token->next != NULL && token->next->next != NULL) {