mirror of
https://github.com/ralsina/tartrazine.git
synced 2025-06-19 06:33:06 -03:00
Update generated code for Linguist 7.14.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: 6aed0bd564f55c4f2d987c2e6035eda7aea26375
|
||||
// Extracted from github/linguist commit: 95636e415749b0bf8fbf3f86922f788cf91c11a2
|
||||
|
||||
package data
|
||||
|
||||
@ -619,6 +619,16 @@ var ContentHeuristics = map[string]*Heuristics{
|
||||
rule.MatchingLanguages("Asymptote"),
|
||||
),
|
||||
},
|
||||
".bas": &Heuristics{
|
||||
rule.Or(
|
||||
rule.MatchingLanguages("FreeBasic"),
|
||||
regexp.MustCompile(`(?m)^[ \t]*#(?:define|endif|endmacro|ifn?def|if|include|lang|macro)\s`),
|
||||
),
|
||||
rule.Or(
|
||||
rule.MatchingLanguages("BASIC"),
|
||||
regexp.MustCompile(`(?m)^\s*\d+`),
|
||||
),
|
||||
},
|
||||
".bb": &Heuristics{
|
||||
rule.Or(
|
||||
rule.MatchingLanguages("BlitzBasic"),
|
||||
@ -629,6 +639,12 @@ var ContentHeuristics = map[string]*Heuristics{
|
||||
regexp.MustCompile(`(?m)^\s*(# |include|require)\b`),
|
||||
),
|
||||
},
|
||||
".bi": &Heuristics{
|
||||
rule.Or(
|
||||
rule.MatchingLanguages("FreeBasic"),
|
||||
regexp.MustCompile(`(?m)^[ \t]*#(?:define|endif|endmacro|ifn?def|if|include|lang|macro)\s`),
|
||||
),
|
||||
},
|
||||
".builds": &Heuristics{
|
||||
rule.Or(
|
||||
rule.MatchingLanguages("XML"),
|
||||
@ -658,7 +674,7 @@ var ContentHeuristics = map[string]*Heuristics{
|
||||
".cls": &Heuristics{
|
||||
rule.Or(
|
||||
rule.MatchingLanguages("TeX"),
|
||||
regexp.MustCompile(`(?m)\\\w+{`),
|
||||
regexp.MustCompile(`(?m)^\s*\\(?:NeedsTeXFormat|ProvidesClass){`),
|
||||
),
|
||||
rule.Or(
|
||||
rule.MatchingLanguages("ObjectScript"),
|
||||
@ -681,6 +697,16 @@ var ContentHeuristics = map[string]*Heuristics{
|
||||
regexp.MustCompile(`(?m)^(\s*namespace\s*[\w\.]+\s*{|\s*\/\/)`),
|
||||
),
|
||||
},
|
||||
".csl": &Heuristics{
|
||||
rule.Or(
|
||||
rule.MatchingLanguages("XML"),
|
||||
regexp.MustCompile(`(?m)(?i:^\s*(\<\?xml|xmlns))`),
|
||||
),
|
||||
rule.Or(
|
||||
rule.MatchingLanguages("Kusto"),
|
||||
regexp.MustCompile(`(?m)(^\|\s*(where|extend|project|limit|summarize))|(^\.\w+)`),
|
||||
),
|
||||
},
|
||||
".d": &Heuristics{
|
||||
rule.Or(
|
||||
rule.MatchingLanguages("D"),
|
||||
@ -1390,6 +1416,12 @@ var ContentHeuristics = map[string]*Heuristics{
|
||||
regexp.MustCompile(`(?m)^(\d{2}:\d{2}:\d{2},\d{3})\s*(-->)\s*(\d{2}:\d{2}:\d{2},\d{3})$`),
|
||||
),
|
||||
},
|
||||
".st": &Heuristics{
|
||||
rule.Or(
|
||||
rule.MatchingLanguages("Smalltalk"),
|
||||
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*\[`),
|
||||
),
|
||||
},
|
||||
".t": &Heuristics{
|
||||
rule.Or(
|
||||
rule.MatchingLanguages("Perl"),
|
||||
|
Reference in New Issue
Block a user