sxsyn, lex `?=` as a single token

This commit is contained in:
Basile Burg 2022-02-03 06:26:09 +01:00
parent 9266f32db4
commit 273291aca0
1 changed files with 2 additions and 2 deletions

View File

@ -792,13 +792,13 @@ begin
// `+` `+=` `++`
'+': lexOpAndOpOpAndOpEqual('+');
// `*` `*=` `%` `%=` `^` `^=` `~` `~=` `!` `!=`
'*', '%', '^', '!', '~': lexOpAndOpEqual();
'*', '%', '^', '!', '~', '?': lexOpAndOpEqual();
// `<` `<<` `<=` `<<=` `>` `>>` `>=` `>>=`
'<': lexOpAndOpOpAndOpEqualAndOpOpEqual('<');
'>': lexOpAndOpOpAndOpEqualAndOpOpEqual('>');
// `=`, `==`, `=>`
'=': lexAssEquOrLambda();
'.', '(', ')', ',', ':' , '[', ']', '?', ';' :
'.', '(', ')', ',', ':' , '[', ']', ';' :
begin
fTokKind := TTokenKind.tkSymbl;
fTokStop += 1;