Documentation ¶
Overview ¶
* This package implements a parser for any markup-style tags, including BBCode tags.
Index ¶
- Variables
- type HtmlTokenBuilder
- type Matcher
- func (m *Matcher) BuildTokens(args *token.TokenArgs) []token.Token
- func (m *Matcher) Exprs() []string
- func (m *Matcher) IsValid(args *token.TokenArgs) bool
- func (m *Matcher) ModifyArgs(args []string, idByName map[string]int) ([]string, map[string]int)
- func (m *Matcher) Name() string
- func (m *Matcher) Options() int
- func (m *Matcher) Type() int
- type MatcherArgs
- type Parser
Constants ¶
This section is empty.
Variables ¶
View Source
var Lexer *lexer.Lexer
Functions ¶
This section is empty.
Types ¶
type HtmlTokenBuilder ¶
type HtmlTokenBuilder struct {
HtmlElements []string
}
type Matcher ¶
type Matcher struct {
// contains filtered or unexported fields
}
A Matcher is an extremely general lexer.Matcher. This will not match tags that are in the middle of a word unless AllowInWord is set.
func NewMatcher ¶
func NewMatcher(args MatcherArgs, exprs ...string) *Matcher
func (*Matcher) ModifyArgs ¶
type MatcherArgs ¶
Click to show internal directories.
Click to hide internal directories.