Links
EControl Syntax Editor SDK
TRuleCollectionItem Class

Base class for rule objects.

TRuleCollectionItem = class(TSyntCollectionItem);

ecSyntAnal

This class contains properties that are common for all rules: 

Style is common for all rules, but it acts differently for different objects: 

  1. For token rules - Style is applied to tokens.
  2. For line separators (block rule with BlockType = btLineBreak) only Style.BgColor is used as color of the horizontal line.
  3. For block rules that detects keywords - Style is applied to identifying token.
  4. For text ranges - Style is applied to different parts of text accordingly to DynHighlight property of the rule.
  5. For sub-lexer ranges - Style is applied to the range where nested lexer acts.

 

Properties that specify whether rule is active at current position of analysis:

  1. AlwaysEnabled specifies whether rule is active in nested lexers.
  2. Block specifies rule of parent text range to test.
  3. StrictParent specifies whether Block specifies rule of immediate parent text range.
  4. NotParent specifies whether parent text range condition must be inverted.
Topic 
Description 
The methods of the TSyntCollectionItem class are listed here. 
The properties of the TSyntCollectionItem class are listed here. 
TRuleCollectionItem Class
Topic 
Description 
The properties of the TRuleCollectionItem class are listed here. 
 
Constructor 
 
virtual 
 
protected 
 
Property 
 
read only 
TSyntCollectionItem Methods 
Description 
Creates and initializes a TSyntCollectionItem instance. 
Indicates whether rule is invalid. 
Returns initial name of the collection item. 
Initializes the item after the lexer has been read into memory. 
TSyntCollectionItem Properties 
Description 
Specifies the name of the collection item. 
Controls whether the style or rule is used in syntactical analysis. 
Indicates whether rule is invalid. 
TRuleCollectionItem Class
TRuleCollectionItem Class 
Description 
Specifies whether rule is active in nested lexers. 
Specifies a rule of parent text range to test. 
Specifies a rule of parent text range to test. 
Specifies whether parent text range condition must be inverted. 
Specifies which state must be absent in current parser state. 
Specifies which states should be added to current parser states. 
Specifies which states must be present in current parser state. 
Specifies which states should be removed from current parser states. 
Specifies whether Block is rule of the immediate parent text range. 
Specifies a style associated with the rule. 
Specifies a style associated with the rule. 
Returns owner of the rule. 
Copyright (c) 2004-2011. All rights reserved.
What do you think about this topic? Send feedback!