Updated Linguist to v7.30.0

This commit is contained in:
github-actions
2024-08-24 16:55:56 +00:00
parent 7d0ed6061c
commit d9491c55fa
30 changed files with 14839 additions and 11974 deletions

View File

@ -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: 4ac734c15a96f9e16fd12330d0cb8de82274f700
// Extracted from github/linguist commit: 42fd3c2514375fc6ad281552368edd3fb9f6ee7f
package data
@ -1318,6 +1318,10 @@ var ContentHeuristics = map[string]*Heuristics{
rule.MatchingLanguages("XML"),
regex.MustCompileMultiline(`<!ENTITY `),
),
rule.Or(
rule.MatchingLanguages("NMODL"),
regex.MustCompileMultiline(`\b(NEURON|INITIAL|UNITS)\b`),
),
rule.Or(
rule.MatchingLanguages("Modula-2"),
regex.MustCompileMultiline(`^\s*(?i:MODULE|END) [\w\.]+;`),
@ -1427,6 +1431,15 @@ var ContentHeuristics = map[string]*Heuristics{
regex.MustCompileMultiline(`<\?[^h]`),
),
},
".pkl": &Heuristics{
rule.Or(
rule.MatchingLanguages("Pkl"),
regex.MustCompileMultiline(`^\s*(module|import|amends|extends|local|const|fixed|abstract|open|class|typealias|@\w+)\b|^\s*[a-zA-Z0-9_$]+\s*(=|{|:)|^\s*`+"`"+`[^`+"`"+`]+`+"`"+`\s*(=|{|:)|for\s*\(|when\s*\(`),
),
rule.Always(
rule.MatchingLanguages("Pickle"),
),
},
".pl": &Heuristics{
rule.Or(
rule.MatchingLanguages("Prolog"),