[Lazarus] CodeTools error when using 'section' keyword

Mattias Gaertner nc-gaertnma at netcologne.de
Tue Oct 21 23:32:14 CEST 2014



> Michael Ring <mail at michael-ring.org> hat am 21. Oktober 2014 um 22:36
> geschrieben:
> 
> 
> program hello;
> const
>  devcfg3: longWord = DEVCFG3_DEFAULT; section '.devcfg3';
> begin
> end.
> 
> is a program that compiles fine but gives me an error in lazarus when I
> try to use completion with ctrl-SPACE.
> 
> 
> hello.pas(3,48) Error: = erwartet aber '.devcfg3' gefunden

fpc 2.6.4 gives the same error.
When is "section" allowed?


> Can I disable codetools for this const definition or is it possible to
> get a fix for this issue in trunk of lazarus?

I will add it, but I need to know the syntax and when it is allowed.

Mattias




More information about the Lazarus mailing list