mirror of
				https://github.com/cheat/cheat.git
				synced 2025-11-04 07:45:28 +01:00 
			
		
		
		
	chore: updates vendored dependencies
Updates `alecthomas/chroma` and `gopkg.in/yaml.v2` to newer versions.
This commit is contained in:
		
							
								
								
									
										6
									
								
								go.sum
									
									
									
									
									
								
							
							
						
						
									
										6
									
								
								go.sum
									
									
									
									
									
								
							@@ -3,10 +3,6 @@ github.com/GeertJohan/go.rice v1.0.0/go.mod h1:eH6gbSOAUv07dQuZVnBmoDP8mgsM1rtix
 | 
			
		||||
github.com/akavel/rsrc v0.8.0/go.mod h1:uLoCtb9J+EyAqh+26kdrTgmzRBFPGOolLWKpdxkKq+c=
 | 
			
		||||
github.com/alecthomas/assert v0.0.0-20170929043011-405dbfeb8e38 h1:smF2tmSOzy2Mm+0dGI2AIUHY+w0BUc+4tn40djz7+6U=
 | 
			
		||||
github.com/alecthomas/assert v0.0.0-20170929043011-405dbfeb8e38/go.mod h1:r7bzyVFMNntcxPZXK3/+KdruV1H5KSlyVY0gc+NgInI=
 | 
			
		||||
github.com/alecthomas/chroma v0.6.7 h1:1hKci+AyKOxJrugR9veaocu9DQGR2/GecI72BpaO0Rg=
 | 
			
		||||
github.com/alecthomas/chroma v0.6.7/go.mod h1:zVlgtbRS7BJDrDY9SB238RmpoCBCYFlLmcfZ3durxTk=
 | 
			
		||||
github.com/alecthomas/chroma v0.6.8 h1:TW4JJaIdbAbMyUtGEd6BukFlOKYvVQz3vVhLBEUNwMU=
 | 
			
		||||
github.com/alecthomas/chroma v0.6.8/go.mod h1:o9ohftueRi7H5be3+Q2cQCNa/YnLBFUNx40ZJfGVFKA=
 | 
			
		||||
github.com/alecthomas/chroma v0.6.9 h1:afiCdwnNPo6fcyvoqqsXs78t7NbR9TuW4wDB7NJkcag=
 | 
			
		||||
github.com/alecthomas/chroma v0.6.9/go.mod h1:1U/PfCsTALWWYHDnsIQkxEBM0+6LLe0v8+RSVMOwxeY=
 | 
			
		||||
github.com/alecthomas/colour v0.0.0-20160524082231-60882d9e2721 h1:JHZL0hZKJ1VENNfmXvHbgYlbUOvpzYzvy2aZU5gXVeo=
 | 
			
		||||
@@ -64,7 +60,5 @@ gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+
 | 
			
		||||
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
 | 
			
		||||
gopkg.in/yaml.v1 v1.0.0-20140924161607-9f9df34309c0 h1:POO/ycCATvegFmVuPpQzZFJ+pGZeX22Ufu6fibxDVjU=
 | 
			
		||||
gopkg.in/yaml.v1 v1.0.0-20140924161607-9f9df34309c0/go.mod h1:WDnlLJ4WF5VGsH/HVa3CI79GS0ol3YnhVnKP89i0kNg=
 | 
			
		||||
gopkg.in/yaml.v2 v2.2.4 h1:/eiJrUcujPVeJ3xlSWaiNi3uSVmDGBK1pDHUHAnao1I=
 | 
			
		||||
gopkg.in/yaml.v2 v2.2.4/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
 | 
			
		||||
gopkg.in/yaml.v2 v2.2.5 h1:ymVxjfMaHvXD8RqPRmzHHsB3VvucivSkIAvJFDI5O3c=
 | 
			
		||||
gopkg.in/yaml.v2 v2.2.5/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										3
									
								
								vendor/github.com/alecthomas/chroma/go.mod
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										3
									
								
								vendor/github.com/alecthomas/chroma/go.mod
									
									
									
										generated
									
									
										vendored
									
									
								
							@@ -14,9 +14,8 @@ require (
 | 
			
		||||
	github.com/gorilla/mux v1.7.3
 | 
			
		||||
	github.com/mattn/go-colorable v0.0.9
 | 
			
		||||
	github.com/mattn/go-isatty v0.0.4
 | 
			
		||||
	github.com/pkg/errors v0.8.1
 | 
			
		||||
	github.com/sergi/go-diff v1.0.0 // indirect
 | 
			
		||||
	github.com/stretchr/testify v1.3.0
 | 
			
		||||
	github.com/stretchr/testify v1.3.0 // indirect
 | 
			
		||||
	golang.org/x/sys v0.0.0-20181128092732-4ed8d59d0b35 // indirect
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										7
									
								
								vendor/github.com/alecthomas/chroma/lexers/j/java.go
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										7
									
								
								vendor/github.com/alecthomas/chroma/lexers/j/java.go
									
									
									
										generated
									
									
										vendored
									
									
								
							@@ -20,7 +20,7 @@ var Java = internal.Register(MustNewLexer(
 | 
			
		||||
			{`//.*?\n`, CommentSingle, nil},
 | 
			
		||||
			{`/\*.*?\*/`, CommentMultiline, nil},
 | 
			
		||||
			{`(assert|break|case|catch|continue|default|do|else|finally|for|if|goto|instanceof|new|return|switch|this|throw|try|while)\b`, Keyword, nil},
 | 
			
		||||
			{`((?:(?:[^\W\d]|\$)[\w.\[\]$<>]*\s+)+?)((?:[^\W\d]|\$)[\w$]*)(\s*)`, ByGroups(UsingSelf("root"), NameFunction, Text, Operator), nil},
 | 
			
		||||
			{`((?:(?:[^\W\d]|\$)[\w.\[\]$<>]*\s+)+?)((?:[^\W\d]|\$)[\w$]*)(\s*)(\()`, ByGroups(UsingSelf("root"), NameFunction, Text, Operator), nil},
 | 
			
		||||
			{`@[^\W\d][\w.]*`, NameDecorator, nil},
 | 
			
		||||
			{`(abstract|const|enum|extends|final|implements|native|private|protected|public|static|strictfp|super|synchronized|throws|transient|volatile)\b`, KeywordDeclaration, nil},
 | 
			
		||||
			{`(boolean|byte|char|double|float|int|long|short|void)\b`, KeywordType, nil},
 | 
			
		||||
@@ -30,7 +30,7 @@ var Java = internal.Register(MustNewLexer(
 | 
			
		||||
			{`(import(?:\s+static)?)(\s+)`, ByGroups(KeywordNamespace, Text), Push("import")},
 | 
			
		||||
			{`"(\\\\|\\"|[^"])*"`, LiteralString, nil},
 | 
			
		||||
			{`'\\.'|'[^\\]'|'\\u[0-9a-fA-F]{4}'`, LiteralStringChar, nil},
 | 
			
		||||
			{`(\.)((?:[^\W\d]|\$)[\w$]*)`, ByGroups(Punctuation, NameAttribute), nil},
 | 
			
		||||
			{`(\.)((?:[^\W\d]|\$)[\w$]*)`, ByGroups(Operator, NameAttribute), nil},
 | 
			
		||||
			{`^\s*([^\W\d]|\$)[\w$]*:`, NameLabel, nil},
 | 
			
		||||
			{`([^\W\d]|\$)[\w$]*`, Name, nil},
 | 
			
		||||
			{`([0-9][0-9_]*\.([0-9][0-9_]*)?|\.[0-9][0-9_]*)([eE][+\-]?[0-9][0-9_]*)?[fFdD]?|[0-9][eE][+\-]?[0-9][0-9_]*[fFdD]?|[0-9]([eE][+\-]?[0-9][0-9_]*)?[fFdD]|0[xX]([0-9a-fA-F][0-9a-fA-F_]*\.?|([0-9a-fA-F][0-9a-fA-F_]*)?\.[0-9a-fA-F][0-9a-fA-F_]*)[pP][+\-]?[0-9][0-9_]*[fFdD]?`, LiteralNumberFloat, nil},
 | 
			
		||||
@@ -38,8 +38,7 @@ var Java = internal.Register(MustNewLexer(
 | 
			
		||||
			{`0[bB][01][01_]*[lL]?`, LiteralNumberBin, nil},
 | 
			
		||||
			{`0[0-7_]+[lL]?`, LiteralNumberOct, nil},
 | 
			
		||||
			{`0|[1-9][0-9_]*[lL]?`, LiteralNumberInteger, nil},
 | 
			
		||||
			{`[~^*!%&<>|+=:/?-]`, Operator, nil},
 | 
			
		||||
			{`[\[\](){};,.]`, Punctuation, nil},
 | 
			
		||||
			{`[~^*!%&\[\](){}<>|+=:;,./?-]`, Operator, nil},
 | 
			
		||||
			{`\n`, Text, nil},
 | 
			
		||||
		},
 | 
			
		||||
		"class": {
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										14
									
								
								vendor/gopkg.in/yaml.v2/decode.go
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										14
									
								
								vendor/gopkg.in/yaml.v2/decode.go
									
									
									
										generated
									
									
										vendored
									
									
								
							@@ -319,10 +319,14 @@ func (d *decoder) prepare(n *node, out reflect.Value) (newout reflect.Value, unm
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
const (
 | 
			
		||||
	// 400,000 decode operations is ~500kb of dense object declarations, or ~5kb of dense object declarations with 10000% alias expansion
 | 
			
		||||
	// 400,000 decode operations is ~500kb of dense object declarations, or
 | 
			
		||||
	// ~5kb of dense object declarations with 10000% alias expansion
 | 
			
		||||
	alias_ratio_range_low = 400000
 | 
			
		||||
	// 4,000,000 decode operations is ~5MB of dense object declarations, or ~4.5MB of dense object declarations with 10% alias expansion
 | 
			
		||||
 | 
			
		||||
	// 4,000,000 decode operations is ~5MB of dense object declarations, or
 | 
			
		||||
	// ~4.5MB of dense object declarations with 10% alias expansion
 | 
			
		||||
	alias_ratio_range_high = 4000000
 | 
			
		||||
 | 
			
		||||
	// alias_ratio_range is the range over which we scale allowed alias ratios
 | 
			
		||||
	alias_ratio_range = float64(alias_ratio_range_high - alias_ratio_range_low)
 | 
			
		||||
)
 | 
			
		||||
@@ -784,8 +788,7 @@ func (d *decoder) merge(n *node, out reflect.Value) {
 | 
			
		||||
	case mappingNode:
 | 
			
		||||
		d.unmarshal(n, out)
 | 
			
		||||
	case aliasNode:
 | 
			
		||||
		an, ok := d.doc.anchors[n.value]
 | 
			
		||||
		if ok && an.kind != mappingNode {
 | 
			
		||||
		if n.alias != nil && n.alias.kind != mappingNode {
 | 
			
		||||
			failWantMap()
 | 
			
		||||
		}
 | 
			
		||||
		d.unmarshal(n, out)
 | 
			
		||||
@@ -794,8 +797,7 @@ func (d *decoder) merge(n *node, out reflect.Value) {
 | 
			
		||||
		for i := len(n.children) - 1; i >= 0; i-- {
 | 
			
		||||
			ni := n.children[i]
 | 
			
		||||
			if ni.kind == aliasNode {
 | 
			
		||||
				an, ok := d.doc.anchors[ni.value]
 | 
			
		||||
				if ok && an.kind != mappingNode {
 | 
			
		||||
				if ni.alias != nil && ni.alias.kind != mappingNode {
 | 
			
		||||
					failWantMap()
 | 
			
		||||
				}
 | 
			
		||||
			} else if ni.kind != mappingNode {
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										4
									
								
								vendor/modules.txt
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										4
									
								
								vendor/modules.txt
									
									
									
									
										vendored
									
									
								
							@@ -1,4 +1,4 @@
 | 
			
		||||
# github.com/alecthomas/chroma v0.6.8
 | 
			
		||||
# github.com/alecthomas/chroma v0.6.9
 | 
			
		||||
github.com/alecthomas/chroma
 | 
			
		||||
github.com/alecthomas/chroma/formatters
 | 
			
		||||
github.com/alecthomas/chroma/formatters/html
 | 
			
		||||
@@ -53,5 +53,5 @@ github.com/mitchellh/go-homedir
 | 
			
		||||
golang.org/x/sys/unix
 | 
			
		||||
# gopkg.in/yaml.v1 v1.0.0-20140924161607-9f9df34309c0
 | 
			
		||||
gopkg.in/yaml.v1
 | 
			
		||||
# gopkg.in/yaml.v2 v2.2.4
 | 
			
		||||
# gopkg.in/yaml.v2 v2.2.5
 | 
			
		||||
gopkg.in/yaml.v2
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user