SimpleDSyntaxSupport

Undocumented in source.
class SimpleDSyntaxSupport : SyntaxSupport {}

Constructors

this
this(string filename)
Undocumented in source.

Members

Functions

applyClosingCurlySmartIndent
void applyClosingCurlySmartIndent(EditOperation op, Object source)
Undocumented in source. Be warned that the author may not have intended to support it.
applyNewLineSmartIndent
void applyNewLineSmartIndent(EditOperation op, Object source)
Undocumented in source. Be warned that the author may not have intended to support it.
applySmartIndent
void applySmartIndent(EditOperation op, Object source)

apply smart indent, if supported

canToggleBlockComment
bool canToggleBlockComment(TextRange range)

return true if can toggle block comments for specified text range

canToggleLineComment
bool canToggleLineComment(TextRange range)

return true if can toggle line comments for specified text range

commentLine
dstring commentLine(dstring s, int commentX)
Undocumented in source. Be warned that the author may not have intended to support it.
findPairedBracket
TextPosition findPairedBracket(TextPosition p)

returns paired bracket {} () [] for char at position p, returns paired char position or p if not found or not bracket

getPositionToken
TokenWithRange getPositionToken(TextPosition pos)
Undocumented in source. Be warned that the author may not have intended to support it.
getRangeTokens
TokenWithRange[] getRangeTokens(TextRange range)
Undocumented in source. Be warned that the author may not have intended to support it.
initTokenizer
bool initTokenizer(TextPosition startPos)
Undocumented in source. Be warned that the author may not have intended to support it.
isInsideBlockComment
bool isInsideBlockComment(TextPosition pos)
Undocumented in source. Be warned that the author may not have intended to support it.
isLineComment
bool isLineComment(dstring s)
Undocumented in source. Be warned that the author may not have intended to support it.
nextBracket
dchar nextBracket(int dir, TextPosition p)
Undocumented in source. Be warned that the author may not have intended to support it.
nextToken
TokenWithRange nextToken()
Undocumented in source. Be warned that the author may not have intended to support it.
supportsSmartIndents
bool supportsSmartIndents()

returns true if smart indent is supported

toggleBlockComment
void toggleBlockComment(TextRange srcrange, Object source)

toggle block comments for specified text range

toggleLineComment
void toggleLineComment(TextRange range, Object source)

toggle line comments for specified text range

tokenStart
TextPosition tokenStart(TextPosition pos)

searches for neares token start before or equal to position

uncommentLine
dstring uncommentLine(dstring s)

remove single line comment from beginning of line

updateHighlight
void updateHighlight(dstring[] lines, TokenPropString[] props, int changeStartLine, int changeEndLine)

categorize characters in content by token types

Properties

content
EditableContent content [@property getter]

returns editable content

content
EditableContent content [@property setter]

set editable content

supportsToggleBlockComment
bool supportsToggleBlockComment [@property getter]

return true if toggle block comment is supported for file type

supportsToggleLineComment
bool supportsToggleLineComment [@property getter]

return true if toggle line comment is supported for file type

Static functions

isBracket
bool isBracket(dchar ch)
Undocumented in source. Be warned that the author may not have intended to support it.
isCloseBracket
bool isCloseBracket(dchar ch)
Undocumented in source. Be warned that the author may not have intended to support it.
isOpenBracket
bool isOpenBracket(dchar ch)
Undocumented in source. Be warned that the author may not have intended to support it.
pairedBracket
dchar pairedBracket(dchar ch)
Undocumented in source. Be warned that the author may not have intended to support it.

Structs

TokenWithRange
struct TokenWithRange
Undocumented in source.

Variables

_bracketStack
BracketStack _bracketStack;
Undocumented in source.
_content
EditableContent _content;
Undocumented in source.
_file
SourceFile _file;
Undocumented in source.
_lastToken
Token _lastToken;
Undocumented in source.
_lastTokenStart
TextPosition _lastTokenStart;
Undocumented in source.
_lines
ArraySourceLines _lines;
Undocumented in source.
_opInProgress
bool _opInProgress;
Undocumented in source.
_props
TokenPropString[] _props;
Undocumented in source.
_tokenizer
Tokenizer _tokenizer;
Undocumented in source.

Meta