gosyntax

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: 4 Imported by: 0

README

Go Syntax Highlighting!

The gosyntax plugin adds in syntax highlighting for *.go files.

Syntax Assumptions

Much of the syntax highlighting assumes gofmted code. If your code is not formatted that way, some of the highlighting may be off. For example, if you use }else{ instead of } else {, the wrong characters will be highlighted. This should only have an affect on those particular instances, though, and the highlighting for the rest of the file should be fine.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Highlight

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

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