Class DMLSyntaxSupport

Inherits from

Constructors

Name Description
this

Fields

Name Type Description
_bracketStack dlangui.dml.dmlhighlight.DMLSyntaxSupport.BracketStack
_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 apply smart indent, if supported
canToggleBlockComment return true if can toggle block comments for specified text range
canToggleLineComment return true if can toggle line comments for specified text range
findPairedBracket returns paired bracket {} () [] for char at position p, returns paired char position or p if not found or not bracket
isBracket
isCloseBracket
isOpenBracket
pairedBracket
supportsSmartIndents returns true if smart indent is supported
toggleBlockComment toggle block comments for specified text range
toggleLineComment toggle line comments for specified text range
updateHighlight categorize characters in content by token types
applyClosingCurlySmartIndent
applyNewLineSmartIndent
commentLine
getPositionToken
getRangeTokens
initTokenizer
isInsideBlockComment
isLineComment
nextBracket
nextToken
tokenStart searches for neares token start before or equal to position
uncommentLine remove single line comment from beginning of line

Inner structs

Name Description
TokenWithRange

Authors

Copyright

License