Add packaging and release automation
This commit is contained in:
parent
2a3b58c44e
commit
8e51e47587
1082 changed files with 356427 additions and 0 deletions
17
vendor/github.com/alecthomas/chroma/v2/lexers/dns.go
generated
vendored
Normal file
17
vendor/github.com/alecthomas/chroma/v2/lexers/dns.go
generated
vendored
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
package lexers
|
||||
|
||||
import (
|
||||
"regexp"
|
||||
)
|
||||
|
||||
// TODO(moorereason): can this be factored away?
|
||||
var zoneAnalyserRe = regexp.MustCompile(`(?m)^@\s+IN\s+SOA\s+`)
|
||||
|
||||
func init() { // nolint: gochecknoinits
|
||||
Get("dns").SetAnalyser(func(text string) float32 {
|
||||
if zoneAnalyserRe.FindString(text) != "" {
|
||||
return 1.0
|
||||
}
|
||||
return 0.0
|
||||
})
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue