grammar

package
v0.0.0-...-559a642 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package grammar is a generated protocol buffer package.

It is generated from these files:

proto/grammar.proto

It has these top-level messages:

Rule
Library

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Library

type Library struct {
	Grammars map[string]*Rule `` /* 136-byte string literal not displayed */
}

func (*Library) Descriptor

func (*Library) Descriptor() ([]byte, []int)

func (*Library) GetGrammars

func (m *Library) GetGrammars() map[string]*Rule

func (*Library) ProtoMessage

func (*Library) ProtoMessage()

func (*Library) Reset

func (m *Library) Reset()

func (*Library) String

func (m *Library) String() string

type Rule

type Rule struct {
	Name                string           `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
	ScopeName           string           `protobuf:"bytes,2,opt,name=scopeName" json:"scopeName,omitempty"`
	ContentName         string           `protobuf:"bytes,3,opt,name=contentName" json:"contentName,omitempty"`
	Match               string           `protobuf:"bytes,4,opt,name=match" json:"match,omitempty"`
	Begin               string           `protobuf:"bytes,5,opt,name=begin" json:"begin,omitempty"`
	While               string           `protobuf:"bytes,6,opt,name=while" json:"while,omitempty"`
	End                 string           `protobuf:"bytes,7,opt,name=end" json:"end,omitempty"`
	Include             string           `protobuf:"bytes,8,opt,name=include" json:"include,omitempty"`
	Patterns            []*Rule          `protobuf:"bytes,9,rep,name=patterns" json:"patterns,omitempty"`
	Captures            map[string]*Rule `` /* 137-byte string literal not displayed */
	BeginCaptures       map[string]*Rule `` /* 147-byte string literal not displayed */
	WhileCaptures       map[string]*Rule `` /* 147-byte string literal not displayed */
	EndCaptures         map[string]*Rule `` /* 143-byte string literal not displayed */
	Repository          map[string]*Rule `` /* 141-byte string literal not displayed */
	Injections          map[string]*Rule `` /* 141-byte string literal not displayed */
	Disabled            bool             `protobuf:"varint,16,opt,name=disabled" json:"disabled,omitempty"`
	ApplyEndPatternLast bool             `protobuf:"varint,17,opt,name=applyEndPatternLast" json:"applyEndPatternLast,omitempty"`
	IncludeResetBase    bool             `protobuf:"varint,18,opt,name=includeResetBase" json:"includeResetBase,omitempty"`
}

func (*Rule) Descriptor

func (*Rule) Descriptor() ([]byte, []int)

func (*Rule) GetApplyEndPatternLast

func (m *Rule) GetApplyEndPatternLast() bool

func (*Rule) GetBegin

func (m *Rule) GetBegin() string

func (*Rule) GetBeginCaptures

func (m *Rule) GetBeginCaptures() map[string]*Rule

func (*Rule) GetCaptures

func (m *Rule) GetCaptures() map[string]*Rule

func (*Rule) GetContentName

func (m *Rule) GetContentName() string

func (*Rule) GetDisabled

func (m *Rule) GetDisabled() bool

func (*Rule) GetEnd

func (m *Rule) GetEnd() string

func (*Rule) GetEndCaptures

func (m *Rule) GetEndCaptures() map[string]*Rule

func (*Rule) GetInclude

func (m *Rule) GetInclude() string

func (*Rule) GetIncludeResetBase

func (m *Rule) GetIncludeResetBase() bool

func (*Rule) GetInjections

func (m *Rule) GetInjections() map[string]*Rule

func (*Rule) GetMatch

func (m *Rule) GetMatch() string

func (*Rule) GetName

func (m *Rule) GetName() string

func (*Rule) GetPatterns

func (m *Rule) GetPatterns() []*Rule

func (*Rule) GetRepository

func (m *Rule) GetRepository() map[string]*Rule

func (*Rule) GetScopeName

func (m *Rule) GetScopeName() string

func (*Rule) GetWhile

func (m *Rule) GetWhile() string

func (*Rule) GetWhileCaptures

func (m *Rule) GetWhileCaptures() map[string]*Rule

func (*Rule) ProtoMessage

func (*Rule) ProtoMessage()

func (*Rule) Reset

func (m *Rule) Reset()

func (*Rule) String

func (m *Rule) String() string

Jump to

Keyboard shortcuts

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