C# Class Nexus.Client.Games.Fallout3.Scripting.XmlScript.CPL.Controls.FO3CplHighlightingStrategy

The highlighting strategy for the FO3 variant of the Conditional Pattern Language.
This is used to highilight CPL in the editor.
Inheritance: Nexus.Client.ModManagement.Scripting.XmlScript.CPL.Controls.CplHighlightingStrategy
Show file Open project: NexusMods/NexusModManager-4.5

Public Methods

Method Description
FO3CplHighlightingStrategy ( ICplParserFactory p_cpfLexerFactory ) : Nexus.Client.ModManagement.Scripting.XmlScript.CPL

A simple construstor that sets the ICplParserFactory to use.

Protected Methods

Method Description
GetTokenClass ( int p_intTokenType ) : TokenClass

Determines the token class of the given token type.

Method Details

FO3CplHighlightingStrategy() public method

A simple construstor that sets the ICplParserFactory to use.
public FO3CplHighlightingStrategy ( ICplParserFactory p_cpfLexerFactory ) : Nexus.Client.ModManagement.Scripting.XmlScript.CPL
p_cpfLexerFactory ICplParserFactory The factory to use to create the CPL lexer used to highlight the code.
return Nexus.Client.ModManagement.Scripting.XmlScript.CPL

GetTokenClass() protected method

Determines the token class of the given token type.
protected GetTokenClass ( int p_intTokenType ) : TokenClass
p_intTokenType int The token type to classify.
return TokenClass