Class DMLSyntaxSupport
Constructors
| Name | Description |
|---|---|
this
(filename)
|
Fields
| Name | Type | Description |
|---|---|---|
_bracketStack
|
dcanvas | |
_content
|
EditableContent | |
_file
|
SourceFile | |
_props
|
ubyte[][] | |
_opInProgress
|
bool | |
_tokenIndex
|
int | |
_tokens
|
Token[] |
Properties
| Name | Type | Description |
|---|---|---|
content[get]
|
EditableContent | returns editable content |
content[set]
|
SyntaxSupport | set editable content |
supportsToggleBlockComment[get]
|
bool | return true if toggle block comment is supported for file type |
supportsToggleLineComment[get]
|
bool | return true if toggle line comment is supported for file type |
Methods
| Name | Description |
|---|---|
applySmartIndent
(op, source)
|
apply smart indent, if supported |
canToggleBlockComment
(range)
|
return true if can toggle block comments for specified text range |
canToggleLineComment
(range)
|
return true if can toggle line comments for specified text range |
findPairedBracket
(p)
|
returns paired bracket {} () [] for char at position p, returns paired char position or p if not found or not bracket |
isBracket
(ch)
|
|
isCloseBracket
(ch)
|
|
isOpenBracket
(ch)
|
|
pairedBracket
(ch)
|
|
supportsSmartIndents
()
|
returns true if smart indent is supported |
toggleBlockComment
(srcrange, source)
|
toggle block comments for specified text range |
toggleLineComment
(range, source)
|
toggle line comments for specified text range |
updateHighlight
(lines, props, changeStartLine, changeEndLine)
|
categorize characters in content by token types |
applyClosingCurlySmartIndent
(op, source)
|
|
applyNewLineSmartIndent
(op, source)
|
|
commentLine
(s, commentX)
|
|
getPositionToken
(pos)
|
|
getRangeTokens
(range)
|
|
initTokenizer
()
|
|
isInsideBlockComment
(pos)
|
|
isLineComment
(s)
|
|
nextBracket
(dir, p)
|
|
nextToken
()
|
|
tokenStart
(pos)
|
searches for neares token start before or equal to position |
uncommentLine
(s)
|
remove single line comment from beginning of line |
Inner structs
| Name | Description |
|---|---|
TokenWithRange
|