Add packaging and release automation
This commit is contained in:
parent
2a3b58c44e
commit
8e51e47587
1082 changed files with 356427 additions and 0 deletions
24
vendor/github.com/alecthomas/chroma/v2/lexers/zed.go
generated
vendored
Normal file
24
vendor/github.com/alecthomas/chroma/v2/lexers/zed.go
generated
vendored
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
package lexers
|
||||
|
||||
import (
|
||||
"strings"
|
||||
)
|
||||
|
||||
// Zed lexer.
|
||||
func init() { // nolint: gochecknoinits
|
||||
Get("Zed").SetAnalyser(func(text string) float32 {
|
||||
if strings.Contains(text, "definition ") && strings.Contains(text, "relation ") && strings.Contains(text, "permission ") {
|
||||
return 0.9
|
||||
}
|
||||
if strings.Contains(text, "definition ") {
|
||||
return 0.5
|
||||
}
|
||||
if strings.Contains(text, "relation ") {
|
||||
return 0.5
|
||||
}
|
||||
if strings.Contains(text, "permission ") {
|
||||
return 0.25
|
||||
}
|
||||
return 0.0
|
||||
})
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue