highlight

package
v7.0.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2020 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Overview

Package highlight implements syntax highlighting for Elvish code.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Emitter

type Emitter struct {
	GoodFormHead func(string) bool
	AddStyling   func(begin, end int, style string)
}

func (*Emitter) EmitAll

func (e *Emitter) EmitAll(n parse.Node)

type Styling

type Styling struct {
	// contains filtered or unexported fields
}

func (*Styling) Add

func (s *Styling) Add(begin, end int, style string)

func (*Styling) Apply

func (s *Styling) Apply() *StylingApplier

type StylingApplier

type StylingApplier struct {
	*Styling
	// contains filtered or unexported fields
}

func (*StylingApplier) At

func (a *StylingApplier) At(i int)

func (*StylingApplier) Get

func (a *StylingApplier) Get() string

Jump to

Keyboard shortcuts

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