changed lexer helper function to add match char to data, and fixed loading in spritesheet from string
This commit is contained in:
parent
83b87c6d63
commit
1435ae14b0
5 changed files with 19 additions and 3 deletions
|
|
@ -335,7 +335,8 @@ uint32_t ARC_Lexer_AutomataMatchCharFn(ARC_String **tokenData, ARC_String *strin
|
|||
|
||||
//check to see if there is a match with automataData as a char
|
||||
if(string->data[0] == *(char *)automataData){
|
||||
//return the token was found of length 1
|
||||
//return the token as token data and the token was found of length 1
|
||||
ARC_String_Create(tokenData, string->data, 1);
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue