1
0
Fork 0
forked from forgejo/forgejo

Vendor Update (#16121)

* update github.com/PuerkitoBio/goquery

* update github.com/alecthomas/chroma

* update github.com/blevesearch/bleve/v2

* update github.com/caddyserver/certmagic

* update github.com/go-enry/go-enry/v2

* update github.com/go-git/go-billy/v5

* update github.com/go-git/go-git/v5

* update github.com/go-redis/redis/v8

* update github.com/go-testfixtures/testfixtures/v3

* update github.com/jaytaylor/html2text

* update github.com/json-iterator/go

* update github.com/klauspost/compress

* update github.com/markbates/goth

* update github.com/mattn/go-isatty

* update github.com/mholt/archiver/v3

* update github.com/microcosm-cc/bluemonday

* update github.com/minio/minio-go/v7

* update github.com/prometheus/client_golang

* update github.com/unrolled/render

* update github.com/xanzy/go-gitlab

* update github.com/yuin/goldmark

* update github.com/yuin/goldmark-highlighting

Co-authored-by: techknowlogick <techknowlogick@gitea.io>
This commit is contained in:
6543 2021-06-10 16:44:25 +02:00 committed by GitHub
parent f088dc4ea1
commit 86e2789960
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
819 changed files with 38072 additions and 34969 deletions

View file

@ -8,7 +8,7 @@ import (
const vbName = `[_\w][\w]*`
// VB.Net lexer.
var VBNet = internal.Register(MustNewLexer(
var VBNet = internal.Register(MustNewLazyLexer(
&Config{
Name: "VB.net",
Aliases: []string{"vb.net", "vbnet"},
@ -16,7 +16,11 @@ var VBNet = internal.Register(MustNewLexer(
MimeTypes: []string{"text/x-vbnet", "text/x-vba"},
CaseInsensitive: true,
},
Rules{
vbNetRules,
))
func vbNetRules() Rules {
return Rules{
"root": {
{`^\s*<.*?>`, NameAttribute, nil},
{`\s+`, Text, nil},
@ -69,5 +73,5 @@ var VBNet = internal.Register(MustNewLexer(
{`(Function|Sub|Property|Class|Structure|Enum|Module|Namespace)\b`, Keyword, Pop(1)},
Default(Pop(1)),
},
},
))
}
}

View file

@ -6,7 +6,7 @@ import (
)
// Verilog lexer.
var Verilog = internal.Register(MustNewLexer(
var Verilog = internal.Register(MustNewLazyLexer(
&Config{
Name: "verilog",
Aliases: []string{"verilog", "v"},
@ -14,7 +14,11 @@ var Verilog = internal.Register(MustNewLexer(
MimeTypes: []string{"text/x-verilog"},
EnsureNL: true,
},
Rules{
verilogRules,
))
func verilogRules() Rules {
return Rules{
"root": {
{"^\\s*`define", CommentPreproc, Push("macro")},
{`\n`, Text, nil},
@ -64,5 +68,5 @@ var Verilog = internal.Register(MustNewLexer(
"import": {
{`[\w:]+\*?`, NameNamespace, Pop(1)},
},
},
))
}
}

View file

@ -6,7 +6,7 @@ import (
)
// VHDL lexer.
var VHDL = internal.Register(MustNewLexer(
var VHDL = internal.Register(MustNewLazyLexer(
&Config{
Name: "VHDL",
Aliases: []string{"vhdl"},
@ -14,7 +14,11 @@ var VHDL = internal.Register(MustNewLexer(
MimeTypes: []string{"text/x-vhdl"},
CaseInsensitive: true,
},
Rules{
vhdlRules,
))
func vhdlRules() Rules {
return Rules{
"root": {
{`\n`, Text, nil},
{`\s+`, Text, nil},
@ -62,5 +66,5 @@ var VHDL = internal.Register(MustNewLexer(
{`O"[0-7_]+"`, LiteralNumberOct, nil},
{`B"[01_]+"`, LiteralNumberBin, nil},
},
},
))
}
}

View file

@ -7,14 +7,18 @@ import (
)
// Viml lexer.
var Viml = internal.Register(MustNewLexer(
var Viml = internal.Register(MustNewLazyLexer(
&Config{
Name: "VimL",
Aliases: []string{"vim"},
Filenames: []string{"*.vim", ".vimrc", ".exrc", ".gvimrc", "_vimrc", "_exrc", "_gvimrc", "vimrc", "gvimrc"},
MimeTypes: []string{"text/x-vim"},
},
Rules{
vimlRules,
))
func vimlRules() Rules {
return Rules{
"root": {
{`^([ \t:]*)(py(?:t(?:h(?:o(?:n)?)?)?)?)([ \t]*)(<<)([ \t]*)(.*)((?:\n|.)*)(\6)`, ByGroups(UsingSelf("root"), Keyword, Text, Operator, Text, Text, Using(Python), Text), nil},
{`^([ \t:]*)(py(?:t(?:h(?:o(?:n)?)?)?)?)([ \t])(.*)`, ByGroups(UsingSelf("root"), Keyword, Text, Using(Python)), nil},
@ -33,5 +37,5 @@ var Viml = internal.Register(MustNewLexer(
{`\b\w+\b`, NameOther, nil},
{`.`, Text, nil},
},
},
))
}
}

View file

@ -8,7 +8,7 @@ import (
// Vue lexer.
//
// This was generated from https://github.com/testdrivenio/vue-lexer
var Vue = internal.Register(MustNewLexer(
var Vue = internal.Register(MustNewLazyLexer(
&Config{
Name: "vue",
Aliases: []string{"vue", "vuejs"},
@ -16,7 +16,11 @@ var Vue = internal.Register(MustNewLexer(
MimeTypes: []string{"text/x-vue", "application/x-vue"},
DotAll: true,
},
Rules{
vueRules,
))
func vueRules() Rules {
return Rules{
"commentsandwhitespace": {
{`\s+`, Text, nil},
{`<!--`, Comment, nil},
@ -103,5 +107,5 @@ var Vue = internal.Register(MustNewLexer(
{`}`, Punctuation, Pop(1)},
Include("root"),
},
},
))
}
}