Documentation ¶
Overview ¶
Package lexer implements a lexer for kl source files.
Index ¶
- Variables
- type Chroma
- func (ch *Chroma) AnalyseText(text string) float32
- func (ch *Chroma) Config() *chroma.Config
- func (ch *Chroma) SetAnalyser(analyser func(text string) float32) chroma.Lexer
- func (ch *Chroma) SetRegistry(registry *chroma.LexerRegistry) chroma.Lexer
- func (ch *Chroma) Tokenise(options *chroma.TokeniseOptions, text string) (chroma.Iterator, error)
- type Lexer
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrUnterminatedString = errors.New("unterminated string") ErrUnterminatedChar = errors.New("unterminated char") )
Functions ¶
This section is empty.
Types ¶
type Chroma ¶
type Chroma struct {
// contains filtered or unexported fields
}
func (*Chroma) AnalyseText ¶
func (*Chroma) SetAnalyser ¶
func (*Chroma) SetRegistry ¶
func (ch *Chroma) SetRegistry(registry *chroma.LexerRegistry) chroma.Lexer
type Lexer ¶
type Lexer struct { Error error Location ast.Location String string // identifier, comment, string literal ValueFormat ast.ValueFormat Unsigned uint64 // contains filtered or unexported fields }
Click to show internal directories.
Click to hide internal directories.