@@ -480,7 +480,15 @@ static PxTokenType identifierType(Scanner *scanner) {
480480 if (scanner -> current - scanner -> start > 1 ) {
481481 switch (scanner -> start [1 ]) {
482482 case 'a' : return checkKeyword (scanner , 2 , 6 , "nitize" , TOKEN_SANITIZE ); // sanitize
483- case 'u' :
483+ case 't' :
484+ if (scanner -> current - scanner -> start > 2 ) {
485+ switch (scanner -> start [2 ]) {
486+ case 'a' : return checkKeyword (scanner , 3 , 3 , "tic" , TOKEN_STATIC );
487+ case 'r' : return checkKeyword (scanner , 3 , 3 , "uct" , TOKEN_STRUCT );
488+ }
489+ }
490+ break ;
491+ case 'u' :
484492 if (scanner -> current - scanner -> start > 2 ) {
485493 if (scanner -> start [2 ] == 'p' ) {
486494 // super... superpose or super
@@ -489,18 +497,7 @@ static PxTokenType identifierType(Scanner *scanner) {
489497 return checkKeyword (scanner , 2 , 3 , "per" , TOKEN_SUPER );
490498 }
491499 }
492- break ;
493- if (scanner -> current - scanner -> start > 2 ) {
494- switch (scanner -> start [2 ]) {
495- case 'a' :
496- return checkKeyword (scanner , 3 , 3 , "tic" , TOKEN_STATIC );
497- case 'r' :
498- return checkKeyword (scanner , 3 , 3 , "uct" , TOKEN_STRUCT );
499- }
500- }
501- break ;
502- case 'u' :
503- return checkKeyword (scanner , 2 , 3 , "per" , TOKEN_SUPER );
500+ return checkKeyword (scanner , 2 , 3 , "per" , TOKEN_SUPER );
504501 case 'w' :
505502 return checkKeyword (scanner , 2 , 4 , "itch" , TOKEN_SWITCH );
506503 }
0 commit comments