Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

parser fails on $IFDEF statement without spaces #5

Open
joachimmarder opened this issue Feb 10, 2021 · 1 comment
Open

parser fails on $IFDEF statement without spaces #5

joachimmarder opened this issue Feb 10, 2021 · 1 comment
Labels
bug Something isn't working grammar Issue is related to Delphi grammar and needs to be fixed in ANTLR pull requests invited There are no current plans to address the issue, but we would be happy if someone supplies a PR

Comments

@joachimmarder
Copy link

joachimmarder commented Feb 10, 2021

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 joachimmarder added bug Something isn't working grammar Issue is related to Delphi grammar and needs to be fixed in ANTLR labels Feb 10, 2021
@joachimmarder joachimmarder changed the title parser fails on $IF statement parser fails on $IFDEF statement without spaces Feb 10, 2021
@ptavasci
Copy link

ptavasci commented Sep 29, 2021

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.

@joachimmarder joachimmarder added the pull requests invited There are no current plans to address the issue, but we would be happy if someone supplies a PR label Oct 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working grammar Issue is related to Delphi grammar and needs to be fixed in ANTLR pull requests invited There are no current plans to address the issue, but we would be happy if someone supplies a PR
Projects
None yet
Development

No branches or pull requests

2 participants