SandroLuck / SonarDelphi

This repository contains the source code to the Sonar-Delphi plugin. Can be used to analyse Delphi projects with SonarQube.
27 stars 40 forks source link

Fix for Issue #7 #8

Closed persus closed 7 years ago

persus commented 7 years ago

This is the fix for the issue #7 I reported earlier.

I have overseen that my IDE's config deletes all unnecessary white-spaces automatically. Sorry. (I am using Beyond Comapre as diff- and merge-tool and with Beyond Compare one can disable the showing of not important changes. So did I.)

The mere fix is in the antler-grammar-file "Delphi.g" at lines 251 and 256. There are some new tests in the file "GrammarTestNew.pas", of course.

The both files "DelphiLexer.java" and "DelphiParser.java" are generated automatically by Antlr3 and therefore not possible to diff :)