Class AnyTextGrammar.KeywordRule
A rule class representing the rule 'Keyword'
public class AnyTextGrammar.KeywordRule : EscapedRegexRule
- Inheritance
-
AnyTextGrammar.KeywordRule
- Inherited Members
Properties
TokenModifiers
Gets the token modifiers of
public override string[] TokenModifiers { get; }
Property Value
- string[]
TokenType
Gets the token type of tokens created for this rule
public override string TokenType { get; }
Property Value
Methods
Escape(string)
Escapes the given string
public override string Escape(string value)
Parameters
value
stringthe unescaped string
Returns
- string
the escaped string
Initialize(GrammarContext)
Initializes the current grammar rule
public override void Initialize(GrammarContext context)
Parameters
context
GrammarContextthe grammar context in which the rule is initialized
Remarks
Do not modify the contents of this method as it will be overridden as the contents of the AnyText file change.
Unescape(string)
Unescapes the given string
public override string Unescape(string value)
Parameters
value
stringthe escaped string
Returns
- string
the unescaped string