@@ -169,6 +169,7 @@ static PxTokenType identifierType(Scanner *scanner) {
169169 if (scanner -> current - scanner -> start > 1 ) {
170170 switch (scanner -> start [1 ]) {
171171 case 'b' : return checkKeyword (scanner , 2 , 6 , "stract" , TOKEN_ABSTRACT );
172+ case 'n' : return checkKeyword (scanner , 2 , 1 , "d" , TOKEN_AND );
172173 case 's' :
173174 if (scanner -> current - scanner -> start == 2 ) return TOKEN_AS ;
174175 return checkKeyword (scanner , 2 , 3 , "ync" , TOKEN_ASYNC );
@@ -371,6 +372,7 @@ static PxTokenType identifierType(Scanner *scanner) {
371372 }
372373 }
373374 break ;
375+ case 'd' : return checkKeyword (scanner , 2 , 6 , "entity" , TOKEN_IDENTITY );
374376 default : return checkKeyword (scanner , 2 , 0 , "" , TOKEN_IN );
375377 }
376378 }
@@ -434,10 +436,12 @@ static PxTokenType identifierType(Scanner *scanner) {
434436 case 'a' : return checkKeyword (scanner , 2 , 4 , "tive" , TOKEN_NATIVE );
435437 case 'e' : return checkKeyword (scanner , 2 , 1 , "w" , TOKEN_NEW );
436438 case 'o' : return checkKeyword (scanner , 2 , 2 , "de" , TOKEN_NODE );
439+ case 'u' : return checkKeyword (scanner , 2 , 2 , "ll" , TOKEN_NULL );
437440 }
438441 }
439442 break ;
440443 case 'N' : return checkKeyword (scanner , 1 , 2 , "av" , TOKEN_UI_NAV );
444+ case 'o' : return checkKeyword (scanner , 1 , 1 , "r" , TOKEN_OR );
441445 case 'O' : return checkKeyword (scanner , 1 , 5 , "ption" , TOKEN_UI_OPTION );
442446 case 'M' : return checkKeyword (scanner , 1 , 3 , "ain" , TOKEN_UI_MAIN );
443447 case 'p' :
@@ -471,6 +475,21 @@ static PxTokenType identifierType(Scanner *scanner) {
471475 break ;
472476 }
473477 }
478+ }
479+ break ;
480+ case 'q' :
481+ if (scanner -> current - scanner -> start > 1 ) {
482+ switch (scanner -> start [1 ]) {
483+ case 'u' :
484+ if (scanner -> current - scanner -> start > 2 ) {
485+ switch (scanner -> start [2 ]) {
486+ case 'a' : return checkKeyword (scanner , 3 , 4 , "ntum" , TOKEN_QUANTUM );
487+ case 'b' : return checkKeyword (scanner , 3 , 2 , "it" , TOKEN_QUBIT );
488+ }
489+ }
490+ break ;
491+ }
492+ }
474493 break ;
475494 case 'r' :
476495 if (scanner -> current - scanner -> start > 1 ) {
@@ -493,6 +512,7 @@ static PxTokenType identifierType(Scanner *scanner) {
493512 }
494513 break ;
495514 case 'o' : return checkKeyword (scanner , 2 , 6 , "llback" , TOKEN_ROLLBACK );
515+ case 'e' : return checkKeyword (scanner , 2 , 5 , "plica" , TOKEN_REPLICA );
496516 }
497517 }
498518 break ;
@@ -515,6 +535,7 @@ static PxTokenType identifierType(Scanner *scanner) {
515535 return checkKeyword (scanner , 2 , 3 , "per" , TOKEN_SUPER );
516536 }
517537 break ;
538+ case 'y' : return checkKeyword (scanner , 2 , 2 , "nc" , TOKEN_SYNC );
518539 case 'w' : return checkKeyword (scanner , 2 , 4 , "itch" , TOKEN_SWITCH );
519540 }
520541 }
@@ -539,6 +560,7 @@ static PxTokenType identifierType(Scanner *scanner) {
539560 if (scanner -> start [2 ] == 'n' ) return checkKeyword (scanner , 3 , 3 , "sor" , TOKEN_TENSOR );
540561 }
541562 break ;
563+ case 'a' : return checkKeyword (scanner , 2 , 5 , "inted" , TOKEN_TAINTED );
542564 case 'h' :
543565 if (scanner -> current - scanner -> start > 2 ) {
544566 switch (scanner -> start [2 ]) {
0 commit comments