0
0

🐛 add missing value to TRUE and FALSE tokens

This commit is contained in:
DrMaxNix 2022-10-01 17:55:47 +02:00
parent 528700b582
commit 02bb1a43e9

View File

@ -642,6 +642,17 @@ class Juicescript_lexer {
token.value = options.value ?? null; token.value = options.value ?? null;
// TRY TO GUESS VALUE //
if(token.value === null){
if(token.type === Juicescript.token_type.TRUE){
token.value = true;
} else if(token.type === Juicescript.token_type.FALSE){
token.value = false;
}
}
// ADD TO LIST // // ADD TO LIST //
this.token_list.push(token); this.token_list.push(token);
} }