Sign in Join

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

Mailing lists / lazarus / 2011-01

portability directives and syntax highlighting

6 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

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

Graeme Geldenhuys

Hi,

Are portability directives like 'platform', 'deprecated' and 'library' supposed to be syntax highlighted like reserved words? I know they are not reserved works, but I think it would make sense (for syntax highlighting) to treat them as such.

See attached screenshot.

I'm using Lazarus 0.9.29 r28985M FPC 2.4.3 x86_64-linux-gtk 2

Regards,
- Graeme -

fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ -------------- next part -------------- A non-text attachment was scrubbed... Name: directives.png Type: image/png Size: 1126 bytes Desc: not available URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20110120/e423bc32/attachment.png>

Reply by email

Martin
to Graeme Geldenhuys
Graeme Geldenhuys wrote 7 lines
Hi, Are portability directives like 'platform', 'deprecated' and 'library' supposed to be syntax highlighted like reserved words? I know they are not reserved works, but I think it would make sense (for syntax highlighting) to treat them as such.

They are in most contexts...

See attached screenshot.

You seem to have found one of the few (or maybe even "the one" ?) example where they are not:
After the end of a structured type declaration....

You should fill in a bug report...

Martin

Reply by email

Martin
to Martin
Martin wrote 10 lines
On 20/01/2011 12:45, Graeme Geldenhuys wrote: > Hi, > > Are portability directives like 'platform', 'deprecated' and 'library' > supposed to be syntax highlighted like reserved words? I know they are > not reserved works, but I think it would make sense (for syntax > highlighting) to treat them as such. > You should fill in a bug report...

or use revision 29140

Reply by email

Graeme Geldenhuys
to Martin

Op 2011-01-20 15:57, Martin het geskryf:

> > You should fill in a bug report... or use revision 29140

:-) Thanks! I'll push my luck and add that revision as a back-port request to 0.9.30.

Here I found another one, though not a directive, but a method name.

Regards,
- Graeme -

fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ -------------- next part -------------- A non-text attachment was scrubbed... Name: syntax_highlighting_2.png Type: image/png Size: 2416 bytes Desc: not available URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20110120/3c0069f1/attachment.png>

Reply by email

Martin
to Graeme Geldenhuys
Graeme Geldenhuys wrote 8 lines
Op 2011-01-20 15:57, Martin het geskryf: >> You should fill in a bug report... > or use revision 29140 :-) Thanks! I'll push my luck and add that revision as a back-port request to 0.9.30. Here I found another one, though not a directive, but a method name.

There are probably lots of those....

Haven't got the time to write the tests for each of them now...

checked something in for "final" *seems* to work....

r29141

Reply by email