vsyntax

package
v0.0.0-...-bbcbdef Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2023 License: Unlicense Imports: 5 Imported by: 0

Documentation

Overview

Package vsyntax implements plugins for syntax highlighting and parsing for the v language (vlang.io).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Editor

type Editor interface {
	text.Editor
}

Editor is used to force mocks to be generated locally for a remote type. We kind of _have_ to accept input.Editor in our local methods because we're implementing an interface.

type Highlight

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

Highlight implements a syntax highlighting plugin for the V language.

func New

func New() *Highlight

func (*Highlight) Applied

func (h *Highlight) Applied(e text.Editor, edits []text.Edit)

func (*Highlight) Apply

func (h *Highlight) Apply(e text.Editor) error

func (*Highlight) Init

func (h *Highlight) Init(e text.Editor, text []rune)

func (*Highlight) Name

func (h *Highlight) Name() string

func (*Highlight) OpName

func (h *Highlight) OpName() string

func (*Highlight) TextChanged

func (h *Highlight) TextChanged(ctx context.Context, editor text.Editor, _ []text.Edit)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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