fix: lexer get balise with '\t' '\n' ' ' in it
This commit is contained in:
parent
5bca08da05
commit
3eb96aabf0
2
lexer.c
2
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();
|
||||
|
|
Loading…
Reference in New Issue