dgrok icon indicating copy to clipboard operation
dgrok copied to clipboard

Failure to parse ZEROBASEDSTRINGS compiler directive

Open d-c-d opened this issue 4 years ago • 0 comments

The examples that come with the Object Pascal Handbook yield the following parse error

	Unrecognized compiler directive 'ZEROBASEDSTRINGS' (1)
		.\StringMetaTestForm.pas:651

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

d-c-d avatar Jun 14 '20 21:06 d-c-d