mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-10 21:49:14 +02:00
fcl-passrc: changed operator precedence level of is to same as and,or,xor
git-svn-id: trunk@40517 -
This commit is contained in:
parent
193cbf1a3e
commit
7815ed4de1
@ -2385,11 +2385,13 @@ begin
|
||||
// Result:=5;
|
||||
tknot,tkAt,tkAtAt:
|
||||
Result:=4;
|
||||
tkMul, tkDivision, tkdiv, tkmod, tkand, tkShl,tkShr, tkas, tkPower :
|
||||
tkMul, tkDivision, tkdiv, tkmod, tkand, tkShl,tkShr, tkas, tkPower, tkis:
|
||||
// Note that "is" has same precedence as "and" in Delphi and fpc, even though
|
||||
// some docs say otherwise. e.g. "Obj is TObj and aBool"
|
||||
Result:=3;
|
||||
tkPlus, tkMinus, tkor, tkxor:
|
||||
Result:=2;
|
||||
tkEqual, tkNotEqual, tkLessThan, tkLessEqualThan, tkGreaterThan, tkGreaterEqualThan, tkin, tkis:
|
||||
tkEqual, tkNotEqual, tkLessThan, tkLessEqualThan, tkGreaterThan, tkGreaterEqualThan, tkin:
|
||||
Result:=1;
|
||||
else
|
||||
Result:=0;
|
||||
|
Loading…
Reference in New Issue
Block a user