now copying the language correctly, at least I hope

This commit is contained in:
herbglitch 2024-11-14 00:07:56 -07:00
parent 2d70208978
commit 5f34dbfeca
5 changed files with 44 additions and 22 deletions

View file

@ -324,7 +324,8 @@ uint32_t ARC_Lexer_AutomataMatchCharOrBetweenFn(ARC_String **tokenData, ARC_Stri
char *automataDataChars = (char *)automataData;
if(string->data[0] >= automataDataChars[0] && string->data[0] <= ((char *)automataData)[1]){
//return the token as token data and the token was found of length 1
ARC_String_Create(tokenData, string->data, 1);
//TODO: fix this
//ARC_String_Create(tokenData, string->data, 1);
return 1;
}