From 3eb96aabf04373439470114e9706749fad627ee4 Mon Sep 17 00:00:00 2001
From: _N3m0 <n3m0o7@hotmail.com>
Date: Tue, 2 Jan 2024 21:50:54 +0100
Subject: [PATCH] fix: lexer get balise with '\t' '\n' ' ' in it

---
 lexer.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lexer.c b/lexer.c
index 9dd1f06..15a29ba 100644
--- a/lexer.c
+++ b/lexer.c
@@ -125,7 +125,7 @@ Token* nexttoken(void){
     int len = 0;
 
     cursor = nextchar();
-    while (*cursor != '>' && *cursor != ' ' && len < HTML_BALISE_LEN){
+    while (*cursor != '>' && *cursor != ' ' && *cursor != '\n' && *cursor != '\t' && len < HTML_BALISE_LEN){
       balise[len] = *cursor;
       len++;
       cursor = nextchar();