Links
EControl Syntax Editor SDK
TSyntAnalyzer.GetToken Method

Tests token rules on the text (Source) at particular position (APos).

function GetToken(Client: TParserResults; const Source: ecString; APos: integer; OnlyGlobal: Boolean): TSyntToken; virtual;

GetToken performs token rules testing on the text (Source) at particular position (APos). OnlyGlobal parameter tells that only rules with marked AlwaysEnabled properties may be used. 

If function succeeds it returns token (TSyntToken object), otherwise it returns nil.

Copyright (c) 2004-2011. All rights reserved.
What do you think about this topic? Send feedback!