mirror of
https://github.com/ralsina/tartrazine.git
synced 2025-06-27 14:47:50 -03:00
Updated Linguist to v7.21.0
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
// Code generated by github.com/go-enry/go-enry/v2/internal/code-generator DO NOT EDIT.
|
||||
// Extracted from github/linguist commit: 4ffcdbcbb60a74cbfbd37656bcc3fcea4eca8e26
|
||||
// Extracted from github/linguist commit: d7799da826e01acdb8f84694d33116dccaabe9c2
|
||||
|
||||
package data
|
||||
|
||||
@ -638,6 +638,10 @@ var ContentHeuristics = map[string]*Heuristics{
|
||||
rule.MatchingLanguages("BitBake"),
|
||||
regexp.MustCompile(`(?m)^\s*(# |include|require)\b`),
|
||||
),
|
||||
rule.Or(
|
||||
rule.MatchingLanguages("Clojure"),
|
||||
regexp.MustCompile(`(?m)\((def|defn|defmacro|let)\s`),
|
||||
),
|
||||
},
|
||||
".bi": &Heuristics{
|
||||
rule.Or(
|
||||
@ -645,6 +649,7 @@ var ContentHeuristics = map[string]*Heuristics{
|
||||
regexp.MustCompile(`(?m)^[ \t]*#(?:define|endif|endmacro|ifn?def|if|include|lang|macro)\s`),
|
||||
),
|
||||
},
|
||||
".bs": &Heuristics{},
|
||||
".builds": &Heuristics{
|
||||
rule.Or(
|
||||
rule.MatchingLanguages("XML"),
|
||||
@ -1472,6 +1477,16 @@ var ContentHeuristics = map[string]*Heuristics{
|
||||
regexp.MustCompile(`(?m)\A\s*[\[{(^"'\w#]|[a-zA-Z_]\w*\s*:=\s*[a-zA-Z_]\w*|class\s*>>\s*[a-zA-Z_]\w*|^[a-zA-Z_]\w*\s+[a-zA-Z_]\w*:|^Class\s*{|if(?:True|False):\s*\[`),
|
||||
),
|
||||
},
|
||||
".star": &Heuristics{
|
||||
rule.Or(
|
||||
rule.MatchingLanguages("STAR"),
|
||||
regexp.MustCompile(`(?m)^loop_\s*$`),
|
||||
),
|
||||
rule.Always(
|
||||
rule.MatchingLanguages("Starlark"),
|
||||
),
|
||||
},
|
||||
".stl": &Heuristics{},
|
||||
".t": &Heuristics{
|
||||
rule.Or(
|
||||
rule.MatchingLanguages("Perl"),
|
||||
|
Reference in New Issue
Block a user