Links
EControl Syntax Editor SDK
TSyntToken Class

Contains information about a token.

TSyntToken = class(TRange);

ecSyntAnal

Tokens is base result of syntax analysis. It may be word, number, string, comment and so on. The meaning of the token depends on the rule that creates this token. 

Each token is the part of the text that matches corresponding regular expression (TTokenRule.Expression). Tokens can not intersect each other. 

 

To access tokens array use TClientSyntAnalyzer.Tags property. 

 

To get token position in text use StartPos property, to get length of the token use (EndPos - StartPos). 

TagPos indicates in-line position (token number in the line; line number).

Topic 
Description 
The methods of the TSortedItem class are listed here. 
TRange Class
Topic 
Description 
The methods of the TRange class are listed here. 
The properties of the TRange class are listed here. 
TSyntToken Class
Topic 
Description 
The methods of the TSyntToken class are listed here. 
The properties of the TSyntToken class are listed here. 
 
Method 
 
protected 
 
abstract 
 
virtual 
 
Property 
 
read only 
TSortedItem Methods 
Description 
Derived classes should return the ID of the item. This ID is used for sorting. 
TRange Class
TRange Class 
Description 
Creates new range with the specified limits. 
Derived classes should return the ID of the item. This ID is used for sorting. 
TSyntToken Class
TSyntToken Class 
Description 
Creates and initializes a TSyntToken instance. 
Returns token string. 
TRange Class
TRange Class 
Description 
End position of the range. This position is not included in the range. 
Size 
Length of the range.
Size = EndPos - StartPos
Start position of the range. Start position is included in the range. 
TSyntToken Class
TSyntToken Class 
Description 
Rule 
Refers to the rule. 
Returns highlighting style of the token. 
Integer value that indicates meaning of the token. 
Copyright (c) 2004-2011. All rights reserved.
What do you think about this topic? Send feedback!