mirror of https://gitlab.com/basile.b/dexed.git
remove detection of contiguous asterisks
not required since lexer change of version 2 update 3
This commit is contained in:
parent
f5c0bf81eb
commit
2bd4562f52
|
@ -103,7 +103,8 @@ function isOperator2(const s: string): boolean; {$IFNDEF DEBUG}inline;{$ENDIF}
|
||||||
begin
|
begin
|
||||||
result := false;
|
result := false;
|
||||||
case s[1] of
|
case s[1] of
|
||||||
'.': result := (s[2] = '.');
|
'.': result := s[2] = '.';
|
||||||
|
'*': result := s[2] = '=';
|
||||||
|
|
||||||
'>': result := s[2] in ['>', '='];
|
'>': result := s[2] in ['>', '='];
|
||||||
'<': result := s[2] in ['<', '=', '>'];
|
'<': result := s[2] in ['<', '=', '>'];
|
||||||
|
@ -113,7 +114,6 @@ begin
|
||||||
'+': result := s[2] in ['+', '='];
|
'+': result := s[2] in ['+', '='];
|
||||||
'-': result := s[2] in ['-', '='];
|
'-': result := s[2] in ['-', '='];
|
||||||
'/': result := s[2] in ['='];
|
'/': result := s[2] in ['='];
|
||||||
'*': result := s[2] in ['=', '*']; // **: pointers
|
|
||||||
'%': result := s[2] in ['='];
|
'%': result := s[2] in ['='];
|
||||||
'~': result := s[2] in ['='];
|
'~': result := s[2] in ['='];
|
||||||
|
|
||||||
|
@ -134,13 +134,12 @@ begin
|
||||||
or (s[2] = '>') and (s[3] = '=');
|
or (s[2] = '>') and (s[3] = '=');
|
||||||
'!': result := ((s[2] = '<') and (s[3] in ['>', '=']))
|
'!': result := ((s[2] = '<') and (s[3] in ['>', '=']))
|
||||||
or ((s[2] = '>')and (s[3] = '='));
|
or ((s[2] = '>')and (s[3] = '='));
|
||||||
'*': result := (s[2] = '*') and (s[3] = '*'); // ***: pointers
|
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
function isOperator4(const s: string): boolean; {$IFNDEF DEBUG} inline; {$ENDIF}
|
function isOperator4(const s: string): boolean; {$IFNDEF DEBUG} inline; {$ENDIF}
|
||||||
begin
|
begin
|
||||||
result := (s = '>>>=') or (s = '!<>=') or (s = '****');
|
result := (s = '>>>=') or (s = '!<>=');
|
||||||
end;
|
end;
|
||||||
|
|
||||||
function isStringPostfix(const c: char): boolean; {$IFNDEF DEBUG}inline;{$ENDIF}
|
function isStringPostfix(const c: char): boolean; {$IFNDEF DEBUG}inline;{$ENDIF}
|
||||||
|
|
Loading…
Reference in New Issue