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

fix: fixing issue #15 - changing grammar to allow inline const declaration #16

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

Valdeirsk8
Copy link

fix: fixing issue #15 - changing grammar to allow inline const declaration


When we have a const inline statement in the code the sonar plugin raise an error;

unit Unit1;

interface

implementation

procedure Test();
begin
  with FComponent do
  begin
    const lInlineConst: integer = 1;
    InternalField := 1;
  end;
end;

C:...\delphi\PMDTest\unit18040698869135927507.pas line 11:4 mismatched input 'const' expecting END
C:...\delphi\PMDTest\unit18040698869135927507.pas line 13:5 mismatched input ';' expecting DOT

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant