Update Object Pascal Highlighter - missng keywords

Main development forum.

Update Object Pascal Highlighter - missng keywords

Postby radekcervinka » Wed Aug 05, 2009 8:33 am

Is possible to update Pascal hightlighter with rest of keywords (for OOP)?
http://www.delphibasics.co.uk/ByType.asp?Type=Keyword
and http://www.delphibasics.co.uk/ByType.asp?Type=Directive

for example:
protected, public, private, published, property, class function, virtual, override, dynamic, read, write, try, finally, except, raise, abstract

Code: Select all
  TSelectorLink = class(TSelectorLink)
  protected
    FbHasForcedPacket:Boolean; // caller overriden default Packet > use
  public
    property poVariantList:TVariantList read FoVariantList write FoVariantList;
    class function GetEditorClass:TEditSimpleFormClass; virtual;
  end;


or construction like

try
finally
end;
or

try
except
end;
radekcervinka
 
Posts: 2
Joined: Wed Aug 05, 2009 8:19 am

Re: Update Object Pascal Highlighter - missng keywords

Postby gerundt » Thu Aug 06, 2009 7:03 am

This should be no problem! Can you maybe submit a Feature Request, so I can assign it to me?
gerundt
Site Admin
 
Posts: 193
Joined: Wed Sep 24, 2008 8:47 am
Location: Germany

Re: Update Object Pascal Highlighter - missng keywords

Postby gerundt » Thu Aug 06, 2009 7:22 am

I did a quick look at the the source code, and we must add the following keywords to our highlighter:

  • As
  • Class
  • Except
  • Finally
  • In
  • Is
  • On
  • Packed
  • Property
  • Raise
  • Shl
  • Shr
  • ThreadVar
  • Try

  • Abstract
  • Default
  • Dynamic
  • Export
  • Index
  • Out
  • Overload
  • Override
  • Private
  • Protected
  • Public
  • Published
  • Virtual
gerundt
Site Admin
 
Posts: 193
Joined: Wed Sep 24, 2008 8:47 am
Location: Germany

Re: Update Object Pascal Highlighter - missng keywords

Postby gerundt » Sat Aug 08, 2009 2:57 pm

gerundt
Site Admin
 
Posts: 193
Joined: Wed Sep 24, 2008 8:47 am
Location: Germany

Re: Update Object Pascal Highlighter - missng keywords

Postby radekcervinka » Sun Aug 09, 2009 7:07 am

Thank you for patch.

Radek
radekcervinka
 
Posts: 2
Joined: Wed Aug 05, 2009 8:19 am


Return to Developers

Who is online

Users browsing this forum: No registered users and 2 guests