You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix issue Failure to parse ZEROBASEDSTRINGS compiler directive
joewhite#6joewhite#6
Add an ignored directive type for ZEROBASEDSTRINGS
to Source/DGrok.Framework/Framework/TokenFilter.cs
Add a new test case ZeroBasedStringsCompilerDirectivesAreIgnored()
to verifiy that {$ZEROBASEDSTRINGS ... } is ignored
( doesn't really check the value of the parameter ON/OFF )
The examples that come with the Object Pascal Handbook yield the following parse error
The offending line in ObjectPascalHandbook/06/StringMetaTest/StringMetaTestForm.pas is
31:{$ZEROBASEDSTRINGS ON}
This example can be found here on github:
https://github.com/MarcoDelphiBooks/ObjectPascalHandbook/tree/master/06/StringMetaTest
ZEROBASEDSTRINGS is described here:
http://docwiki.embarcadero.com/RADStudio/Rio/en/Zero-based_strings_(Delphi)
Assuming that we need to add
_directiveTypes["ZEROBASEDSTRINGS"] = DirectiveType.Ignored;
to the TokenFilter constructor in TokenFilter.cs
The text was updated successfully, but these errors were encountered: