tiny.syn.scan
Defined in tiny.syn.
The namespace holds the calls that mark up text, one for a line on its own and one for a line inside a longer document.
API (3)
Actions
Public operations.
highlight: Marks up one line from a fresh continuation state.highlightLine: Marks up one line of a document and updatesstatewith what the line leaves open.
Namespaces
Public namespaces.
line: Each call runs one line through the routine for its language and records the marked ranges in storage the caller provides.
Source
Source: lib/syn/src/root.zig:40
zig
pub const scan = @import("scan/root.zig");Source: lib/syn/src/scan/root.zig
zig
//! The namespace holds the calls that mark up text, one for a line on its own and one for a line//! inside a longer document. A caller with a single line, such as a one-line snippet, needs nothing//! carried between calls, and a caller walking a file line by line needs what each line leaves open//! to reach the next. `highlight` marks up a line on its own from a fresh start, and//! `highlightLine` also takes the record of what earlier lines left open and updates it. The//! routine for each family of languages stays private behind these two calls.pub const line = @import("line.zig");pub const highlight = line.highlight;pub const highlightLine = line.highlightLine;Audit
| Definitions | 1 |
|---|---|
| Public names | 1 |
| Members | 0 |
| Version | 26.7.0 |
| Revision | daab053ee433 |