yaml

package
v0.15.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 24, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package yaml provides YAML syntax highlighting for clog.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Highlight

func Highlight(s string, styles *style.YAML) string

Highlight applies syntax highlighting to s using the provided styles. Highlighting is best-effort: if the lexer does not round-trip the input exactly, s is returned unchanged to preserve the caller's formatting. Returns s unchanged when styles is nil.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL