Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2017-02

"protected" as class property incorrectly highlighted

3 messages · 3 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Torsten Bonde Christiansen

Hi List.

I ran into this situation by random - but examplified here (using Lazarus IDE):

As "protected" is not a reserved word
(http://www.freepascal.org/docs-html/current/ref/refse3.html#x11-100001.3) in any modes I think this is a bug in the highlighter.

Should I report it to the bugtracker?

Kind regard,
Torsten Bonde Christiansen.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20170201/4ec05b09/attachment-0001.html> -------------- next part --------------
A non-text attachment was scrubbed...
Name: ojaoldbacohheplb.png
Type: image/png
Size: 18371 bytes
Desc: not available
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20170201/4ec05b09/attachment-0001.png>

Reply by email

Mattias Gaertner
to Torsten Bonde Christiansen

On Wed, 1 Feb 2017 13:00:23 +0100
Torsten Bonde Christiansen via Lazarus

[...] As "protected" is not a reserved word (http://www.freepascal.org/docs-html/current/ref/refse3.html#x11-100001.3) in any modes I think this is a bug in the highlighter.

It is not a globally reserved word. Only in classes and similar elements with visibility.

Note: Delphi highlights 'protected' globally too.

Should I report it to the bugtracker?

I leave this to Martin.

Mattias

Reply by email