CodeHighlighter.query

Find the next important range starting with the byte at given index.

Tip: Query is likely to be called again with byteIndex set to the value of range.end.

interface CodeHighlighter
query
(
size_t byteIndex
)
in (byteIndex != size_t.max, "Invalid byte index (-1)")
out (r; r.end != byteIndex, "query() must not return empty ranges")

Return Value

Type: CodeSlice

The next relevant code range. Parts with no highlighting should be ignored. If there is nothing left to highlight, should return init.

Meta