Browse Source
[Vendor] Update Batch 2020-11 (#13746)
[Vendor] Update Batch 2020-11 (#13746)
* github.com/alecthomas/chroma v0.8.1 -> v0.8.2 Changelog: https://github.com/alecthomas/chroma/releases/tag/v0.8.2 * github.com/blevesearch/bleve v1.0.12 -> v1.0.13 Changelog: https://github.com/blevesearch/bleve/releases/tag/v1.0.13 * github.com/editorconfig/editorconfig-core-go v2.3.8 -> v2.3.9 Changelog: https://github.com/editorconfig/editorconfig-core-go/releases/tag/v2.3.9 * github.com/klauspost/compress v1.11.2 -> v1.11.3 Changelog: https://github.com/klauspost/compress/releases/tag/v1.11.3 * github.com/minio/minio-go v7.0.5 -> v7.0.6 Changelog: https://github.com/minio/minio-go/releases/tag/v7.0.6 Co-authored-by: Lauris BH <lauris@nix.lv>mj-v1.14.3
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
68 changed files with 1290 additions and 500 deletions
-
10go.mod
-
45go.sum
-
2vendor/github.com/alecthomas/chroma/.goreleaser.yml
-
12vendor/github.com/alecthomas/chroma/.travis.yml
-
23vendor/github.com/alecthomas/chroma/README.md
-
18vendor/github.com/alecthomas/chroma/formatters/html/html.go
-
2vendor/github.com/alecthomas/chroma/lexers/b/bash.go
-
20vendor/github.com/alecthomas/chroma/lexers/g/go.go
-
1vendor/github.com/alecthomas/chroma/lexers/j/javascript.go
-
55vendor/github.com/alecthomas/chroma/lexers/p/promql.go
-
54vendor/github.com/alecthomas/chroma/lexers/qml.go
-
10vendor/github.com/alecthomas/chroma/lexers/r/rust.go
-
62vendor/github.com/alecthomas/chroma/lexers/s/stylus.go
-
8vendor/github.com/alecthomas/chroma/lexers/z/zig.go
-
81vendor/github.com/alecthomas/chroma/styles/base16-snazzy.go
-
21vendor/github.com/alecthomas/chroma/table.py
-
10vendor/github.com/blevesearch/bleve/go.mod
-
41vendor/github.com/blevesearch/bleve/mapping/document.go
-
2vendor/github.com/blevesearch/bleve/mapping/index.go
-
2vendor/github.com/blevesearch/zap/v11/go.mod
-
2vendor/github.com/blevesearch/zap/v12/go.mod
-
2vendor/github.com/blevesearch/zap/v13/go.mod
-
2vendor/github.com/blevesearch/zap/v14/go.mod
-
2vendor/github.com/blevesearch/zap/v15/go.mod
-
8vendor/github.com/blevesearch/zap/v15/intDecoder.go
-
51vendor/github.com/blevesearch/zap/v15/merge.go
-
52vendor/github.com/blevesearch/zap/v15/posting.go
-
2vendor/github.com/blevesearch/zap/v15/segment.go
-
7vendor/github.com/editorconfig/editorconfig-core-go/v2/CHANGELOG.md
-
7vendor/github.com/editorconfig/editorconfig-core-go/v2/editorconfig.go
-
12vendor/github.com/editorconfig/editorconfig-core-go/v2/fnmatch.go
-
2vendor/github.com/editorconfig/editorconfig-core-go/v2/go.mod
-
4vendor/github.com/editorconfig/editorconfig-core-go/v2/go.sum
-
114vendor/github.com/klauspost/compress/flate/gen_inflate.go
-
7vendor/github.com/klauspost/compress/flate/inflate.go
-
456vendor/github.com/klauspost/compress/flate/inflate_gen.go
-
4vendor/github.com/klauspost/compress/zstd/README.md
-
10vendor/github.com/klauspost/compress/zstd/decoder.go
-
3vendor/github.com/minio/minio-go/v7/Makefile
-
4vendor/github.com/minio/minio-go/v7/README.md
-
58vendor/github.com/minio/minio-go/v7/README_zh_CN.md
-
17vendor/github.com/minio/minio-go/v7/api-bucket-versioning.go
-
35vendor/github.com/minio/minio-go/v7/api-compose-object.go
-
7vendor/github.com/minio/minio-go/v7/api-get-options.go
-
11vendor/github.com/minio/minio-go/v7/api-put-object-streaming.go
-
26vendor/github.com/minio/minio-go/v7/api-put-object.go
-
70vendor/github.com/minio/minio-go/v7/api-remove.go
-
26vendor/github.com/minio/minio-go/v7/api-s3-datatypes.go
-
27vendor/github.com/minio/minio-go/v7/api-stat.go
-
2vendor/github.com/minio/minio-go/v7/api.go
-
6vendor/github.com/minio/minio-go/v7/bucket-cache.go
-
9vendor/github.com/minio/minio-go/v7/constants.go
-
7vendor/github.com/minio/minio-go/v7/core.go
-
3vendor/github.com/minio/minio-go/v7/go.mod
-
18vendor/github.com/minio/minio-go/v7/go.sum
-
2vendor/github.com/minio/minio-go/v7/pkg/credentials/assume_role.go
-
3vendor/github.com/minio/minio-go/v7/pkg/credentials/credentials.go
-
22vendor/github.com/minio/minio-go/v7/pkg/credentials/iam_aws.go
-
12vendor/github.com/minio/minio-go/v7/pkg/credentials/sts_client_grants.go
-
27vendor/github.com/minio/minio-go/v7/pkg/credentials/sts_ldap_identity.go
-
20vendor/github.com/minio/minio-go/v7/pkg/credentials/sts_web_identity.go
-
2vendor/github.com/minio/minio-go/v7/pkg/lifecycle/lifecycle.go
-
2vendor/github.com/minio/minio-go/v7/pkg/notification/notification.go
-
109vendor/github.com/minio/minio-go/v7/pkg/replication/replication.go
-
10vendor/github.com/minio/minio-go/v7/pkg/s3utils/utils.go
-
6vendor/github.com/minio/minio-go/v7/retry.go
-
3vendor/github.com/minio/minio-go/v7/utils.go
-
20vendor/modules.txt
@ -1,12 +0,0 @@ |
|||
sudo: false |
|||
language: go |
|||
go: |
|||
- "1.13.x" |
|||
script: |
|||
- go test -v ./... |
|||
- curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | bash -s v1.26.0 |
|||
- ./bin/golangci-lint run |
|||
- git clean -fdx . |
|||
after_success: |
|||
curl -sL https://git.io/goreleaser | bash && goreleaser |
|||
|
@ -0,0 +1,55 @@ |
|||
package p |
|||
|
|||
import ( |
|||
. "github.com/alecthomas/chroma" // nolint
|
|||
"github.com/alecthomas/chroma/lexers/internal" |
|||
) |
|||
|
|||
// Promql lexer.
|
|||
var Promql = internal.Register(MustNewLexer( |
|||
&Config{ |
|||
Name: "PromQL", |
|||
Aliases: []string{"promql"}, |
|||
Filenames: []string{"*.promql"}, |
|||
MimeTypes: []string{}, |
|||
}, |
|||
Rules{ |
|||
"root": { |
|||
{`\n`, TextWhitespace, nil}, |
|||
{`\s+`, TextWhitespace, nil}, |
|||
{`,`, Punctuation, nil}, |
|||
{Words(``, `\b`, `bool`, `by`, `group_left`, `group_right`, `ignoring`, `offset`, `on`, `without`), Keyword, nil}, |
|||
{Words(``, `\b`, `sum`, `min`, `max`, `avg`, `group`, `stddev`, `stdvar`, `count`, `count_values`, `bottomk`, `topk`, `quantile`), Keyword, nil}, |
|||
{Words(``, `\b`, `abs`, `absent`, `absent_over_time`, `avg_over_time`, `ceil`, `changes`, `clamp_max`, `clamp_min`, `count_over_time`, `day_of_month`, `day_of_week`, `days_in_month`, `delta`, `deriv`, `exp`, `floor`, `histogram_quantile`, `holt_winters`, `hour`, `idelta`, `increase`, `irate`, `label_join`, `label_replace`, `ln`, `log10`, `log2`, `max_over_time`, `min_over_time`, `minute`, `month`, `predict_linear`, `quantile_over_time`, `rate`, `resets`, `round`, `scalar`, `sort`, `sort_desc`, `sqrt`, `stddev_over_time`, `stdvar_over_time`, `sum_over_time`, `time`, `timestamp`, `vector`, `year`), KeywordReserved, nil}, |
|||
{`[1-9][0-9]*[smhdwy]`, LiteralString, nil}, |
|||
{`-?[0-9]+\.[0-9]+`, LiteralNumberFloat, nil}, |
|||
{`-?[0-9]+`, LiteralNumberInteger, nil}, |
|||
{`#.*?$`, CommentSingle, nil}, |
|||
{`(\+|\-|\*|\/|\%|\^)`, Operator, nil}, |
|||
{`==|!=|>=|<=|<|>`, Operator, nil}, |
|||
{`and|or|unless`, OperatorWord, nil}, |
|||
{`[_a-zA-Z][a-zA-Z0-9_]+`, NameVariable, nil}, |
|||
{`(["\'])(.*?)(["\'])`, ByGroups(Punctuation, LiteralString, Punctuation), nil}, |
|||
{`\(`, Operator, Push("function")}, |
|||
{`\)`, Operator, nil}, |
|||
{`\{`, Punctuation, Push("labels")}, |
|||
{`\[`, Punctuation, Push("range")}, |
|||
}, |
|||
"labels": { |
|||
{`\}`, Punctuation, Pop(1)}, |
|||
{`\n`, TextWhitespace, nil}, |
|||
{`\s+`, TextWhitespace, nil}, |
|||
{`,`, Punctuation, nil}, |
|||
{`([_a-zA-Z][a-zA-Z0-9_]*?)(\s*?)(=~|!=|=|~!)(\s*?)(")(.*?)(")`, ByGroups(NameLabel, TextWhitespace, Operator, TextWhitespace, Punctuation, LiteralString, Punctuation), nil}, |
|||
}, |
|||
"range": { |
|||
{`\]`, Punctuation, Pop(1)}, |
|||
{`[1-9][0-9]*[smhdwy]`, LiteralString, nil}, |
|||
}, |
|||
"function": { |
|||
{`\)`, Operator, Pop(1)}, |
|||
{`\(`, Operator, Push()}, |
|||
Default(Pop(1)), |
|||
}, |
|||
}, |
|||
)) |
@ -0,0 +1,54 @@ |
|||
package lexers |
|||
|
|||
import ( |
|||
. "github.com/alecthomas/chroma" // nolint
|
|||
"github.com/alecthomas/chroma/lexers/internal" |
|||
) |
|||
|
|||
// Qml lexer.
|
|||
var Qml = internal.Register(MustNewLexer( |
|||
&Config{ |
|||
Name: "QML", |
|||
Aliases: []string{"qml", "qbs"}, |
|||
Filenames: []string{"*.qml", "*.qbs"}, |
|||
MimeTypes: []string{"application/x-qml", "application/x-qt.qbs+qml"}, |
|||
DotAll: true, |
|||
}, |
|||
Rules{ |
|||
"commentsandwhitespace": { |
|||
{`\s+`, Text, nil}, |
|||
{`<!--`, Comment, nil}, |
|||
{`//.*?\n`, CommentSingle, nil}, |
|||
{`/\*.*?\*/`, CommentMultiline, nil}, |
|||
}, |
|||
"slashstartsregex": { |
|||
Include("commentsandwhitespace"), |
|||
{`/(\\.|[^[/\\\n]|\[(\\.|[^\]\\\n])*])+/([gim]+\b|\B)`, LiteralStringRegex, Pop(1)}, |
|||
{`(?=/)`, Text, Push("#pop", "badregex")}, |
|||
Default(Pop(1)), |
|||
}, |
|||
"badregex": { |
|||
{`\n`, Text, Pop(1)}, |
|||
}, |
|||
"root": { |
|||
{`^(?=\s|/|<!--)`, Text, Push("slashstartsregex")}, |
|||
Include("commentsandwhitespace"), |
|||
{`\+\+|--|~|&&|\?|:|\|\||\\(?=\n)|(<<|>>>?|==?|!=?|[-<>+*%&|^/])=?`, Operator, Push("slashstartsregex")}, |
|||
{`[{(\[;,]`, Punctuation, Push("slashstartsregex")}, |
|||
{`[})\].]`, Punctuation, nil}, |
|||
{`\bid\s*:\s*[A-Za-z][\w.]*`, KeywordDeclaration, Push("slashstartsregex")}, |
|||
{`\b[A-Za-z][\w.]*\s*:`, Keyword, Push("slashstartsregex")}, |
|||
{`(for|in|while|do|break|return|continue|switch|case|default|if|else|throw|try|catch|finally|new|delete|typeof|instanceof|void|this)\b`, Keyword, Push("slashstartsregex")}, |
|||
{`(var|let|with|function)\b`, KeywordDeclaration, Push("slashstartsregex")}, |
|||
{`(abstract|boolean|byte|char|class|const|debugger|double|enum|export|extends|final|float|goto|implements|import|int|interface|long|native|package|private|protected|public|short|static|super|synchronized|throws|transient|volatile)\b`, KeywordReserved, nil}, |
|||
{`(true|false|null|NaN|Infinity|undefined)\b`, KeywordConstant, nil}, |
|||
{`(Array|Boolean|Date|Error|Function|Math|netscape|Number|Object|Packages|RegExp|String|sun|decodeURI|decodeURIComponent|encodeURI|encodeURIComponent|Error|eval|isFinite|isNaN|parseFloat|parseInt|document|this|window)\b`, NameBuiltin, nil}, |
|||
{`[$a-zA-Z_]\w*`, NameOther, nil}, |
|||
{`[0-9][0-9]*\.[0-9]+([eE][0-9]+)?[fd]?`, LiteralNumberFloat, nil}, |
|||
{`0x[0-9a-fA-F]+`, LiteralNumberHex, nil}, |
|||
{`[0-9]+`, LiteralNumberInteger, nil}, |
|||
{`"(\\\\|\\"|[^"])*"`, LiteralStringDouble, nil}, |
|||
{`'(\\\\|\\'|[^'])*'`, LiteralStringSingle, nil}, |
|||
}, |
|||
}, |
|||
)) |
62
vendor/github.com/alecthomas/chroma/lexers/s/stylus.go
File diff suppressed because it is too large
View File
File diff suppressed because it is too large
View File
@ -0,0 +1,81 @@ |
|||
package styles |
|||
|
|||
import ( |
|||
"github.com/alecthomas/chroma" |
|||
) |
|||
|
|||
// Base16Snazzy style
|
|||
var Base16Snazzy = Register(chroma.MustNewStyle("base16-snazzy", chroma.StyleEntries{ |
|||
chroma.Comment: "#78787e", |
|||
chroma.CommentHashbang: "#78787e", |
|||
chroma.CommentMultiline: "#78787e", |
|||
chroma.CommentPreproc: "#78787e", |
|||
chroma.CommentSingle: "#78787e", |
|||
chroma.CommentSpecial: "#78787e", |
|||
chroma.Generic: "#e2e4e5", |
|||
chroma.GenericDeleted: "#ff5c57", |
|||
chroma.GenericEmph: "#e2e4e5 underline", |
|||
chroma.GenericError: "#ff5c57", |
|||
chroma.GenericHeading: "#e2e4e5 bold", |
|||
chroma.GenericInserted: "#e2e4e5 bold", |
|||
chroma.GenericOutput: "#43454f", |
|||
chroma.GenericPrompt: "#e2e4e5", |
|||
chroma.GenericStrong: "#e2e4e5 italic", |
|||
chroma.GenericSubheading: "#e2e4e5 bold", |
|||
chroma.GenericTraceback: "#e2e4e5", |
|||
chroma.GenericUnderline: "underline", |
|||
chroma.Error: "#ff5c57", |
|||
chroma.Keyword: "#ff6ac1", |
|||
chroma.KeywordConstant: "#ff6ac1", |
|||
chroma.KeywordDeclaration: "#ff5c57", |
|||
chroma.KeywordNamespace: "#ff6ac1", |
|||
chroma.KeywordPseudo: "#ff6ac1", |
|||
chroma.KeywordReserved: "#ff6ac1", |
|||
chroma.KeywordType: "#9aedfe", |
|||
chroma.Literal: "#e2e4e5", |
|||
chroma.LiteralDate: "#e2e4e5", |
|||
chroma.Name: "#e2e4e5", |
|||
chroma.NameAttribute: "#57c7ff", |
|||
chroma.NameBuiltin: "#ff5c57", |
|||
chroma.NameBuiltinPseudo: "#e2e4e5", |
|||
chroma.NameClass: "#f3f99d", |
|||
chroma.NameConstant: "#ff9f43", |
|||
chroma.NameDecorator: "#ff9f43", |
|||
chroma.NameEntity: "#e2e4e5", |
|||
chroma.NameException: "#e2e4e5", |
|||
chroma.NameFunction: "#57c7ff", |
|||
chroma.NameLabel: "#ff5c57", |
|||
chroma.NameNamespace: "#e2e4e5", |
|||
chroma.NameOther: "#e2e4e5", |
|||
chroma.NameTag: "#ff6ac1", |
|||
chroma.NameVariable: "#ff5c57", |
|||
chroma.NameVariableClass: "#ff5c57", |
|||
chroma.NameVariableGlobal: "#ff5c57", |
|||
chroma.NameVariableInstance: "#ff5c57", |
|||
chroma.LiteralNumber: "#ff9f43", |
|||
chroma.LiteralNumberBin: "#ff9f43", |
|||
chroma.LiteralNumberFloat: "#ff9f43", |
|||
chroma.LiteralNumberHex: "#ff9f43", |
|||
chroma.LiteralNumberInteger: "#ff9f43", |
|||
chroma.LiteralNumberIntegerLong: "#ff9f43", |
|||
chroma.LiteralNumberOct: "#ff9f43", |
|||
chroma.Operator: "#ff6ac1", |
|||
chroma.OperatorWord: "#ff6ac1", |
|||
chroma.Other: "#e2e4e5", |
|||
chroma.Punctuation: "#e2e4e5", |
|||
chroma.LiteralString: "#5af78e", |
|||
chroma.LiteralStringBacktick: "#5af78e", |
|||
chroma.LiteralStringChar: "#5af78e", |
|||
chroma.LiteralStringDoc: "#5af78e", |
|||
chroma.LiteralStringDouble: "#5af78e", |
|||
chroma.LiteralStringEscape: "#5af78e", |
|||
chroma.LiteralStringHeredoc: "#5af78e", |
|||
chroma.LiteralStringInterpol: "#5af78e", |
|||
chroma.LiteralStringOther: "#5af78e", |
|||
chroma.LiteralStringRegex: "#5af78e", |
|||
chroma.LiteralStringSingle: "#5af78e", |
|||
chroma.LiteralStringSymbol: "#5af78e", |
|||
chroma.Text: "#e2e4e5", |
|||
chroma.TextWhitespace: "#e2e4e5", |
|||
chroma.Background: " bg:#282a36", |
|||
})) |