mirror of
https://github.com/ralsina/tartrazine.git
synced 2025-06-27 14:47:50 -03:00
Updated Linguist to v7.30.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: 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"),
|
||||
|
Reference in New Issue
Block a user