diff options
| -rw-r--r-- | compromyse.xyz/index.html | 3 | ||||
| -rw-r--r-- | src/lexer.c | 18 |
2 files changed, 1 insertions, 20 deletions
diff --git a/compromyse.xyz/index.html b/compromyse.xyz/index.html index 9af59df..9b038c4 100644 --- a/compromyse.xyz/index.html +++ b/compromyse.xyz/index.html @@ -1,3 +1,4 @@ +{{ put abc }} <div class="p-16"> </div> @@ -5,8 +6,6 @@ KSFAISO ASHIAUHSFI HERE -HERETOO{{ put abc }}ENDIT -ASJFHAIS {{ endeachdo }} <div class="p-16"> diff --git a/src/lexer.c b/src/lexer.c index 9810d2f..56802d1 100644 --- a/src/lexer.c +++ b/src/lexer.c @@ -33,44 +33,26 @@ lex(char *buffer) char *raw_content = strndup(buffer, match->offset); directive_t *raw_directive = malloc(sizeof(directive_t)); - key_match_t *raw_match = malloc(sizeof(key_match_t)); raw_directive->type = _RAW; raw_directive->operands = raw_content; - - raw_match->length = match->offset; - raw_match->offset = current_offset - match->length - match->offset; - list_add(directives, raw_directive); - list_add(matches, raw_match); free(raw_directive); - free(raw_match); } buffer += match->offset + match->length; list_add(directives, directive); - list_add(matches, match); } if (strlen(buffer) > 0) { char *raw_content = strdup(buffer); directive_t *raw_directive = malloc(sizeof(directive_t)); - key_match_t *raw_key = malloc(sizeof(key_match_t)); - raw_directive->type = _RAW; raw_directive->operands = raw_content; - - raw_key->length = strlen(buffer); - raw_key->offset = current_offset; - list_add(directives, raw_directive); - list_add(matches, raw_key); - - free(raw_directive); - free(raw_key); } out->directives = directives; |
