SonarDelphi icon indicating copy to clipboard operation
SonarDelphi copied to clipboard

parser fails on $IFDEF statement without spaces

Open joachimmarder opened this issue 4 years ago • 1 comments

The parser fails on this line of code:

s := {$ifdef CPUx64}'64'{$else}'32'{$endif};

Adding spaces serves as a workaround:

s := {$ifdef CPUx64} '64' {$else} '32' {$endif};

joachimmarder avatar Feb 10 '21 19:02 joachimmarder

Same issue here I'm using Sonar 9.1.0.47736 on Docker for Windows for testing purposes with sonar-delphi-plugin-1.0.7.jar.

ptavasci avatar Sep 29 '21 21:09 ptavasci