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 (
)
// J lexer.
var J = internal.Register(MustNewLexer(
var J = internal.Register(MustNewLazyLexer(
&Config{
Name: "J",
Aliases: []string{"j"},
Filenames: []string{"*.ijs"},
MimeTypes: []string{"text/x-j"},
},
Rules{
jRules,
))
func jRules() Rules {
return Rules{
"root": {
{`#!.*$`, CommentPreproc, nil},
{`NB\..*`, CommentSingle, nil},
@ -69,5 +73,5 @@ var J = internal.Register(MustNewLexer(
{`''`, LiteralString, nil},
{`'`, LiteralString, Pop(1)},
},
},
))
}
}

View file

@ -6,15 +6,20 @@ import (
)
// Java lexer.
var Java = internal.Register(MustNewLexer(
var Java = internal.Register(MustNewLazyLexer(
&Config{
Name: "Java",
Aliases: []string{"java"},
Filenames: []string{"*.java"},
MimeTypes: []string{"text/x-java"},
DotAll: true,
EnsureNL: true,
},
Rules{
javaRules,
))
func javaRules() Rules {
return Rules{
"root": {
{`[^\S\n]+`, Text, nil},
{`//.*?\n`, CommentSingle, nil},
@ -47,5 +52,5 @@ var Java = internal.Register(MustNewLexer(
"import": {
{`[\w.]+\*?`, NameNamespace, Pop(1)},
},
},
))
}
}

View file

@ -26,11 +26,11 @@ var JavascriptRules = Rules{
{`\A#! ?/.*?\n`, CommentHashbang, nil},
{`^(?=\s|/|<!--)`, Text, Push("slashstartsregex")},
Include("commentsandwhitespace"),
{`(\.\d+|[0-9]+\.[0-9]*)([eE][-+]?[0-9]+)?`, LiteralNumberFloat, nil},
{`\d+(\.\d*|[eE][+\-]?\d+)`, LiteralNumberFloat, nil},
{`0[bB][01]+`, LiteralNumberBin, nil},
{`0[oO][0-7]+`, LiteralNumberOct, nil},
{`0[xX][0-9a-fA-F]+`, LiteralNumberHex, nil},
{`[0-9]+`, LiteralNumberInteger, nil},
{`[0-9_]+`, LiteralNumberInteger, nil},
{`\.\.\.|=>`, Punctuation, nil},
{`\+\+|--|~|&&|\?|:|\|\||\\(?=\n)|(<<|>>>?|==?|!=?|[-<>+*%&|^/])=?`, Operator, Push("slashstartsregex")},
{`[{(\[;,]`, Punctuation, Push("slashstartsregex")},
@ -65,7 +65,7 @@ var Javascript = internal.Register(MustNewLexer(
&Config{
Name: "JavaScript",
Aliases: []string{"js", "javascript"},
Filenames: []string{"*.js", "*.jsm"},
Filenames: []string{"*.js", "*.jsm", "*.mjs"},
MimeTypes: []string{"application/javascript", "application/x-javascript", "text/x-javascript", "text/javascript"},
DotAll: true,
EnsureNL: true,

View file

@ -6,7 +6,7 @@ import (
)
// JSON lexer.
var JSON = internal.Register(MustNewLexer(
var JSON = internal.Register(MustNewLazyLexer(
&Config{
Name: "JSON",
Aliases: []string{"json"},
@ -15,7 +15,11 @@ var JSON = internal.Register(MustNewLexer(
NotMultiline: true,
DotAll: true,
},
Rules{
jsonRules,
))
func jsonRules() Rules {
return Rules{
"whitespace": {
{`\s+`, Text, nil},
},
@ -51,5 +55,5 @@ var JSON = internal.Register(MustNewLexer(
"root": {
Include("value"),
},
},
))
}
}

View file

@ -8,7 +8,7 @@ import (
// JSX lexer.
//
// This was generated from https://github.com/fcurella/jsx-lexer
var JSX = internal.Register(MustNewLexer(
var JSX = internal.Register(MustNewLazyLexer(
&Config{
Name: "react",
Aliases: []string{"jsx", "react"},
@ -16,7 +16,11 @@ var JSX = internal.Register(MustNewLexer(
MimeTypes: []string{"text/jsx", "text/typescript-jsx"},
DotAll: true,
},
Rules{
jsxRules,
))
func jsxRules() Rules {
return Rules{
"commentsandwhitespace": {
{`\s+`, Text, nil},
{`<!--`, Comment, nil},
@ -91,5 +95,5 @@ var JSX = internal.Register(MustNewLexer(
{`}`, Punctuation, Pop(1)},
Include("root"),
},
},
))
}
}

File diff suppressed because one or more lines are too long

View file

@ -5,14 +5,18 @@ import (
"github.com/alecthomas/chroma/lexers/internal"
)
var Jungle = internal.Register(MustNewLexer(
var Jungle = internal.Register(MustNewLazyLexer(
&Config{
Name: "Jungle",
Aliases: []string{"jungle"},
Filenames: []string{"*.jungle"},
MimeTypes: []string{"text/x-jungle"},
},
Rules{
jungleRules,
))
func jungleRules() Rules {
return Rules{
"root": {
{`[^\S\n]+`, Text, nil},
{`\n`, Text, nil},
@ -46,5 +50,5 @@ var Jungle = internal.Register(MustNewLexer(
{`[a-zA-Z_]\w*`, Name, nil},
Default(Pop(1)),
},
},
))
}
}