mirror of https://gitlab.com/basile.b/dexed.git
sxsyn, adjust lexing to make dot equal ligature working
This commit is contained in:
parent
6e2209e3b0
commit
5f0cb4a3f4
src
|
@ -811,7 +811,16 @@ begin
|
|||
'>': lexOpAndOpOpAndOpEqualAndOpOpEqual('>');
|
||||
// `=`, `==`, `=>`
|
||||
'=': lexAssEquOrLambda();
|
||||
'.', '(', ')', ',', ':' , '[', ']', ';' :
|
||||
'.':
|
||||
begin
|
||||
nextPChar := safeLookupChar();
|
||||
fTokKind := TTokenKind.tkSymbl;
|
||||
if (nextPChar <> nil) and (nextPChar^ = '=') then
|
||||
fTokStop += 2
|
||||
else
|
||||
fTokStop += 1;
|
||||
end;
|
||||
'(', ')', ',', ':' , '[', ']', ';' :
|
||||
begin
|
||||
fTokKind := TTokenKind.tkSymbl;
|
||||
fTokStop += 1;
|
||||
|
|
Loading…
Reference in New Issue