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

@ -6,14 +6,18 @@ import (
)
// Factor lexer.
var Factor = internal.Register(MustNewLexer(
var Factor = internal.Register(MustNewLazyLexer(
&Config{
Name: "Factor",
Aliases: []string{"factor"},
Filenames: []string{"*.factor"},
MimeTypes: []string{"text/x-factor"},
},
Rules{
factorRules,
))
func factorRules() Rules {
return Rules{
"root": {
{`#!.*$`, CommentPreproc, nil},
Default(Push("base")),
@ -111,5 +115,5 @@ var Factor = internal.Register(MustNewLexer(
{`;\s`, Keyword, Pop(1)},
{`\S+`, NameFunction, nil},
},
},
))
}
}

View file

@ -6,14 +6,18 @@ import (
)
// Fish lexer.
var Fish = internal.Register(MustNewLexer(
var Fish = internal.Register(MustNewLazyLexer(
&Config{
Name: "Fish",
Aliases: []string{"fish", "fishshell"},
Filenames: []string{"*.fish", "*.load"},
MimeTypes: []string{"application/x-fish"},
},
Rules{
fishRules,
))
func fishRules() Rules {
return Rules{
"root": {
Include("basic"),
Include("data"),
@ -61,5 +65,5 @@ var Fish = internal.Register(MustNewLexer(
{`\d+`, LiteralNumber, nil},
Include("root"),
},
},
))
}
}

View file

@ -6,7 +6,7 @@ import (
)
// Forth lexer.
var Forth = internal.Register(MustNewLexer(
var Forth = internal.Register(MustNewLazyLexer(
&Config{
Name: "Forth",
Aliases: []string{"forth"},
@ -14,7 +14,11 @@ var Forth = internal.Register(MustNewLexer(
MimeTypes: []string{"application/x-forth"},
CaseInsensitive: true,
},
Rules{
forthRules,
))
func forthRules() Rules {
return Rules{
"root": {
{`\s+`, Text, nil},
{`\\.*?\n`, CommentSingle, nil},
@ -36,5 +40,5 @@ var Forth = internal.Register(MustNewLexer(
"stringdef": {
{`[^"]+`, LiteralString, Pop(1)},
},
},
))
}
}

View file

@ -6,7 +6,7 @@ import (
)
// Fortran lexer.
var Fortran = internal.Register(MustNewLexer(
var Fortran = internal.Register(MustNewLazyLexer(
&Config{
Name: "Fortran",
Aliases: []string{"fortran"},
@ -14,7 +14,11 @@ var Fortran = internal.Register(MustNewLexer(
MimeTypes: []string{"text/x-fortran"},
CaseInsensitive: true,
},
Rules{
fortranRules,
))
func fortranRules() Rules {
return Rules{
"root": {
{`^#.*\n`, CommentPreproc, nil},
{`!.*\n`, Comment, nil},
@ -43,5 +47,5 @@ var Fortran = internal.Register(MustNewLexer(
{`[+-]?\d*\.\d+([ed][-+]?\d+)?(_[a-z]\w+)?`, LiteralNumberFloat, nil},
{`[+-]?\d+\.\d*([ed][-+]?\d+)?(_[a-z]\w+)?`, LiteralNumberFloat, nil},
},
},
))
}
}

View file

@ -6,14 +6,18 @@ import (
)
// Fsharp lexer.
var Fsharp = internal.Register(MustNewLexer(
var Fsharp = internal.Register(MustNewLazyLexer(
&Config{
Name: "FSharp",
Aliases: []string{"fsharp"},
Filenames: []string{"*.fs", "*.fsi"},
MimeTypes: []string{"text/x-fsharp"},
},
Rules{
fsharpRules,
))
func fsharpRules() Rules {
return Rules{
"escape-sequence": {
{`\\[\\"\'ntbrafv]`, LiteralStringEscape, nil},
{`\\[0-9]{3}`, LiteralStringEscape, nil},
@ -90,5 +94,5 @@ var Fsharp = internal.Register(MustNewLexer(
{`"""B?`, LiteralString, Pop(1)},
{`"`, LiteralString, nil},
},
},
))
}
}