Table of Contents

Class TextMateParser

Namespace
Alternet.Syntax.Parsers.TextMate
Assembly
Alternet.Syntax.Parsers.TextMate.v10.dll

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.

CollectTokens()
CompleteBrace(Point, CodeCompletionArgs)
CreateRepository()

Initializes a new instance of the ICodeCompletionRepository class with default settings.

GetCompletionType(char)

Obtains type of code completion window from specifies char parameter.

GetGrammarExtension()
GetMatchingIndentString(int)
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.

IsIndentEnd(int)
IsValidRulesOrScopes(List<string>, List<ThemeTrieElementRule>, out string)
IsValidToken(string)
OnFileNameChanged()
OnThemeNameChanged()
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.

ParseText(ITokenizeLineResult, Theme, int, string, ref StringItemInfo[])
ParseUnit()
ProcessFolding()
ProcessIndentationBasedFolding()
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.

UpdateCodeCompletionChars()
UpdateGrammar()
UpdateTheme()