lib/syn/src/scan/root.zig

daab053ee43316e1809a84551d573ddd1e5bf3d2

 1 //! The namespace holds the calls that mark up text, one for a line on its own and one for a line
 2 //! inside a longer document. A caller with a single line, such as a one-line snippet, needs nothing
 3 //! carried between calls, and a caller walking a file line by line needs what each line leaves open
 4 //! to reach the next. `highlight` marks up a line on its own from a fresh start, and
 5 //! `highlightLine` also takes the record of what earlier lines left open and updates it. The
 6 //! routine for each family of languages stays private behind these two calls.
 7 pub const line = @import("line.zig");
 8 
 9 pub const highlight = line.highlight;
10 pub const highlightLine = line.highlightLine;