Class TextMateParser
Represents properties and methods to perform syntax analysis, based on the TextMate grammar, of the text.
public class TextMateParser : SyntaxParser, IComponent, IDisposable, ISyntaxParser, IParser, ILexer, INotify, IUpdate, IImport
- Inheritance
-
TextMateParser
- Implements
- Derived
Constructors
- TextMateParser()
Initializes a new instance of the
TextMateParser
class with default settings.
Properties
- FileName
Gets or sets file name of the file being parsed.
- LanguageDefinition
Gets a current language information like grammar and theme data.
- ThemeName
Gets or sets a current color theme.
Methods
- CodeCompletion(string, StringItemInfo[], Point, CodeCompletionArgs)
Performs code completion for the specified text representing language element.
- CreateRepository()
Initializes a new instance of the
ICodeCompletionRepository
class with default settings.
- GetCompletionType(char)
Obtains type of code completion window from specifies
char
parameter.
- GetMultiLineComment(out string, out string)
Gets the start and symbols multi-line comment.
- GetSingleLineComment()
Gets the string that represents start symbol of single line comment.
- GetSmartIndent(int, bool)
Returns indentation level of specified line.
- GetSmartIndentString(int, bool, bool, int)
Returns indentation string for specified line.
- InitIndentationRules(string, string, string)
Initializes indentation rules with the new values.
- ParseText(int, int, string, ref StringItemInfo[])
Performs lexical analysis of given text.
- ParseText(int, int, string, ref int, ref int, ref int)
Performs lexical analysis of given text.
- ReparseText()
Reparses entire text.
- Reset()
Resets
SyntaxParser
to the start position.
- ResetOptions()
Resets
Options
to the default value.
- ShouldSerializeOptions()
Indicates whether the
Options
property should be persisted.
- ShouldSerializeUseScheme()
Indicates whether the
UseScheme
property should be persisted.
- SmartFormat(ref Point, bool, int, ITextUndoList, string)
Formats block of text according to the parser rules.