p

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: 2 Imported by: 72

Documentation

Index

Constants

This section is empty.

Variables

View Source
var PLpgSQL = internal.Register(MustNewLazyLexer(
	&Config{
		Name:            "PL/pgSQL",
		Aliases:         []string{"plpgsql"},
		Filenames:       []string{},
		MimeTypes:       []string{"text/x-plpgsql"},
		NotMultiline:    true,
		CaseInsensitive: true,
	},
	plpgSQLRules,
))

Pl/Pgsql lexer.

View Source
var Pacmanconf = internal.Register(MustNewLazyLexer(
	&Config{
		Name:      "PacmanConf",
		Aliases:   []string{"pacmanconf"},
		Filenames: []string{"pacman.conf"},
		MimeTypes: []string{},
	},
	pacmanconfRules,
))

Pacmanconf lexer.

View Source
var Perl = internal.Register(MustNewLazyLexer(
	&Config{
		Name:      "Perl",
		Aliases:   []string{"perl", "pl"},
		Filenames: []string{"*.pl", "*.pm", "*.t"},
		MimeTypes: []string{"text/x-perl", "application/x-perl"},
		DotAll:    true,
	},
	perlRules,
))

Perl lexer.

View Source
var Pig = internal.Register(MustNewLazyLexer(
	&Config{
		Name:            "Pig",
		Aliases:         []string{"pig"},
		Filenames:       []string{"*.pig"},
		MimeTypes:       []string{"text/x-pig"},
		CaseInsensitive: true,
	},
	pigRules,
))

Pig lexer.

View Source
var Pkgconfig = internal.Register(MustNewLazyLexer(
	&Config{
		Name:      "PkgConfig",
		Aliases:   []string{"pkgconfig"},
		Filenames: []string{"*.pc"},
		MimeTypes: []string{},
	},
	pkgconfigRules,
))

Pkgconfig lexer.

View Source
var Plaintext = internal.Register(MustNewLazyLexer(
	&Config{
		Name:      "plaintext",
		Aliases:   []string{"text", "plain", "no-highlight"},
		Filenames: []string{"*.txt"},
		MimeTypes: []string{"text/plain"},
		Priority:  0.1,
	},
	internal.PlaintextRules,
))
View Source
var PlutusCoreLang = internal.Register(MustNewLazyLexer(
	&Config{
		Name:      "Plutus Core",
		Aliases:   []string{"plutus-core", "plc"},
		Filenames: []string{"*.plc"},
		MimeTypes: []string{"text/x-plutus-core", "application/x-plutus-core"},
	},
	plutusCoreRules,
))
View Source
var Pony = internal.Register(MustNewLazyLexer(
	&Config{
		Name:      "Pony",
		Aliases:   []string{"pony"},
		Filenames: []string{"*.pony"},
		MimeTypes: []string{},
	},
	ponyRules,
))

Pony lexer.

View Source
var PostgreSQL = internal.Register(MustNewLazyLexer(
	&Config{
		Name:            "PostgreSQL SQL dialect",
		Aliases:         []string{"postgresql", "postgres"},
		Filenames:       []string{},
		MimeTypes:       []string{"text/x-postgresql"},
		NotMultiline:    true,
		CaseInsensitive: true,
	},
	postgreSQLRules,
))

Postgresql Sql Dialect lexer.

View Source
var Postscript = internal.Register(MustNewLazyLexer(
	&Config{
		Name:      "PostScript",
		Aliases:   []string{"postscript", "postscr"},
		Filenames: []string{"*.ps", "*.eps"},
		MimeTypes: []string{"application/postscript"},
	},
	postscriptRules,
))

Postscript lexer.

View Source
var Povray = internal.Register(MustNewLazyLexer(
	&Config{
		Name:      "POVRay",
		Aliases:   []string{"pov"},
		Filenames: []string{"*.pov", "*.inc"},
		MimeTypes: []string{"text/x-povray"},
	},
	povrayRules,
))

Povray lexer.

View Source
var PowerQuery = internal.Register(MustNewLazyLexer(
	&Config{
		Name:            "PowerQuery",
		Aliases:         []string{"powerquery", "pq"},
		Filenames:       []string{"*.pq"},
		MimeTypes:       []string{"text/x-powerquery"},
		DotAll:          true,
		CaseInsensitive: true,
	},
	powerqueryRules,
))

PowerQuery lexer.

View Source
var Powershell = internal.Register(MustNewLazyLexer(
	&Config{
		Name:            "PowerShell",
		Aliases:         []string{"powershell", "posh", "ps1", "psm1", "psd1"},
		Filenames:       []string{"*.ps1", "*.psm1", "*.psd1"},
		MimeTypes:       []string{"text/x-powershell"},
		DotAll:          true,
		CaseInsensitive: true,
	},
	powershellRules,
))

Powershell lexer.

View Source
var Prolog = internal.Register(MustNewLazyLexer(
	&Config{
		Name:      "Prolog",
		Aliases:   []string{"prolog"},
		Filenames: []string{"*.ecl", "*.prolog", "*.pro", "*.pl"},
		MimeTypes: []string{"text/x-prolog"},
	},
	prologRules,
))

Prolog lexer.

View Source
var Promql = internal.Register(MustNewLazyLexer(
	&Config{
		Name:      "PromQL",
		Aliases:   []string{"promql"},
		Filenames: []string{"*.promql"},
		MimeTypes: []string{},
	},
	promqlRules,
))

Promql lexer.

View Source
var ProtocolBuffer = internal.Register(MustNewLazyLexer(
	&Config{
		Name:      "Protocol Buffer",
		Aliases:   []string{"protobuf", "proto"},
		Filenames: []string{"*.proto"},
		MimeTypes: []string{},
	},
	protocolBufferRules,
))

ProtocolBuffer lexer.

View Source
var Puppet = internal.Register(MustNewLazyLexer(
	&Config{
		Name:      "Puppet",
		Aliases:   []string{"puppet"},
		Filenames: []string{"*.pp"},
		MimeTypes: []string{},
	},
	puppetRules,
))

Puppet lexer.

View Source
var Python = internal.Register(MustNewLazyLexer(
	&Config{
		Name:      "Python",
		Aliases:   []string{"python", "py", "sage", "python3", "py3"},
		Filenames: []string{"*.py", "*.pyi", "*.pyw", "*.jy", "*.sage", "*.sc", "SConstruct", "SConscript", "*.bzl", "BUCK", "BUILD", "BUILD.bazel", "WORKSPACE", "*.tac"},
		MimeTypes: []string{"text/x-python", "application/x-python", "text/x-python3", "application/x-python3"},
	},
	pythonRules,
))

Python lexer.

View Source
var Python2 = internal.Register(MustNewLazyLexer(
	&Config{
		Name:      "Python 2",
		Aliases:   []string{"python2", "py2"},
		Filenames: []string{},
		MimeTypes: []string{"text/x-python2", "application/x-python2"},
	},
	python2Rules,
))

Python2 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