b

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2022 License: MIT Imports: 4 Imported by: 40

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Ballerina = internal.Register(MustNewLazyLexer(
	&Config{
		Name:      "Ballerina",
		Aliases:   []string{"ballerina"},
		Filenames: []string{"*.bal"},
		MimeTypes: []string{"text/x-ballerina"},
		DotAll:    true,
	},
	ballerinaRules,
))

Ballerina lexer.

View Source
var Bash = internal.Register(MustNewLazyLexer(
	&Config{
		Name:      "Bash",
		Aliases:   []string{"bash", "sh", "ksh", "zsh", "shell"},
		Filenames: []string{"*.sh", "*.ksh", "*.bash", "*.ebuild", "*.eclass", ".env", "*.env", "*.exheres-0", "*.exlib", "*.zsh", "*.zshrc", ".bashrc", "bashrc", ".bash_*", "bash_*", "zshrc", ".zshrc", "PKGBUILD"},
		MimeTypes: []string{"application/x-sh", "application/x-shellscript"},
	},
	bashRules,
).SetAnalyser(func(text string) float32 {
	if bashAnalyserRe.FindString(text) != "" {
		return 1.0
	}
	return 0.0
}))

Bash lexer.

View Source
var BashSession = internal.Register(MustNewLazyLexer(
	&Config{
		Name:      "BashSession",
		Aliases:   []string{"bash-session", "console", "shell-session"},
		Filenames: []string{".sh-session"},
		MimeTypes: []string{"text/x-sh"},
		EnsureNL:  true,
	},
	bashsessionRules,
))

BashSession lexer.

View Source
var Batchfile = internal.Register(MustNewLazyLexer(
	&Config{
		Name:            "Batchfile",
		Aliases:         []string{"bat", "batch", "dosbatch", "winbatch"},
		Filenames:       []string{"*.bat", "*.cmd"},
		MimeTypes:       []string{"application/x-dos-batch"},
		CaseInsensitive: true,
	},
	batchfileRules,
))

Batchfile lexer.

View Source
var Bibtex = internal.Register(MustNewLazyLexer(
	&Config{
		Name:            "BibTeX",
		Aliases:         []string{"bib", "bibtex"},
		Filenames:       []string{"*.bib"},
		MimeTypes:       []string{"text/x-bibtex"},
		NotMultiline:    true,
		CaseInsensitive: true,
	},
	bibtexRules,
))

Bibtex lexer.

View Source
var Bicep = internal.Register(MustNewLazyLexer(
	&Config{
		Name:      "Bicep",
		Aliases:   []string{"bicep"},
		Filenames: []string{"*.bicep"},
	},
	bicepRules,
))

Bicep lexer.

View Source
var Blitzbasic = internal.Register(MustNewLazyLexer(
	&Config{
		Name:            "BlitzBasic",
		Aliases:         []string{"blitzbasic", "b3d", "bplus"},
		Filenames:       []string{"*.bb", "*.decls"},
		MimeTypes:       []string{"text/x-bb"},
		CaseInsensitive: true,
	},
	blitzbasicRules,
))

Blitzbasic lexer.

View Source
var Bnf = internal.Register(MustNewLazyLexer(
	&Config{
		Name:      "BNF",
		Aliases:   []string{"bnf"},
		Filenames: []string{"*.bnf"},
		MimeTypes: []string{"text/x-bnf"},
	},
	bnfRules,
))

Bnf lexer.

View Source
var Brainfuck = internal.Register(MustNewLazyLexer(
	&Config{
		Name:      "Brainfuck",
		Aliases:   []string{"brainfuck", "bf"},
		Filenames: []string{"*.bf", "*.b"},
		MimeTypes: []string{"application/x-brainfuck"},
	},
	brainfuckRules,
))

Brainfuck lexer.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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