Class DMLSyntaxSupport

class DMLSyntaxSupport
  : SyntaxSupport;

Constructors

NameDescription
this (filename)

Fields

NameTypeDescription
_bracketStack dcanvas.dml.dmlhighlight.DMLSyntaxSupport.BracketStack
_content EditableContent
_file SourceFile
_props ubyte[][]
_opInProgress bool
_tokenIndex int
_tokens Token[]

Properties

NameTypeDescription
content[get] EditableContentreturns editable content
content[set] SyntaxSupportset editable content
supportsToggleBlockComment[get] boolreturn true if toggle block comment is supported for file type
supportsToggleLineComment[get] boolreturn true if toggle line comment is supported for file type

Methods

NameDescription
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

NameDescription
TokenWithRange