syntax

package
v0.0.0-...-586e974 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2019 License: BSD-2-Clause, BSD-2-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Context

type Context []Pattern

type Pattern

type Pattern struct {
	Include              string
	MetaScope            string `yaml:"meta_scope"`
	MetaContentScope     string `yaml:"meta_content_scope"`
	MetaIncludePrototype string `yaml:"meta_include_prototype"`
	Match                textmate.Regex
	Scope                string
	Captures             textmate.Captures
	Push                 Context
	Pop                  bool
	Set                  string
	Syntax               string
}

type Syntax

type Syntax struct {
	Name           string
	FileExtensions []string `yaml:"file_extensions"`
	FirstLineMatch string   `yaml:"first_line_match"`
	Scope          string
	Variables      map[string]string
	Hidden         bool
	Contexts       map[string]Context
}

For loading sublime-syntax files https://www.sublimetext.com/docs/3/syntax.html

func Load

func Load(filename string) (*Syntax, error)

Jump to

Keyboard shortcuts

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