mirror of
https://github.com/ralsina/tartrazine.git
synced 2025-06-27 14:47:50 -03:00
Updated Linguist to v7.27.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: b5432ebc7e78f25415b98d48c2fbacddbf8df317
|
||||
// Extracted from github/linguist commit: 7ca3799b8b5f1acde1dd7a8dfb7ae849d3dfb4cd
|
||||
|
||||
package data
|
||||
|
||||
@ -607,7 +607,7 @@ var ContentHeuristics = map[string]*Heuristics{
|
||||
),
|
||||
rule.Or(
|
||||
rule.MatchingLanguages("AsciiDoc"),
|
||||
regex.MustCompileMultiline(`^[=-]+(\s|\n)|\{\{[A-Za-z]`),
|
||||
regex.MustCompileMultiline(`^[=-]+\s|\{\{[A-Za-z]`),
|
||||
),
|
||||
rule.Or(
|
||||
rule.MatchingLanguages("AGS Script"),
|
||||
@ -697,6 +697,10 @@ var ContentHeuristics = map[string]*Heuristics{
|
||||
rule.MatchingLanguages("BrighterScript"),
|
||||
regex.MustCompileRuby(`(?i:^\s*(?=^sub\s)(?:sub\s*\w+\(.*?\))|(?::\s*sub\(.*?\))$)|(?i:^\s*(end\ssub)$)|(?i:^\s*(?=^function\s)(?:function\s*\w+\(.*?\)\s*as\s*\w*)|(?::\s*function\(.*?\)\s*as\s*\w*)$)|(?i:^\s*(end\sfunction)$)`),
|
||||
),
|
||||
rule.Or(
|
||||
rule.MatchingLanguages("Bluespec BH"),
|
||||
regex.MustCompileMultiline(`^package\s+[A-Za-z_][A-Za-z0-9_']*(?:\s*\(|\s+where)`),
|
||||
),
|
||||
},
|
||||
".builds": &Heuristics{
|
||||
rule.Or(
|
||||
@ -752,7 +756,7 @@ var ContentHeuristics = map[string]*Heuristics{
|
||||
".cmp": &Heuristics{
|
||||
rule.Or(
|
||||
rule.MatchingLanguages("Gerber Image"),
|
||||
regex.MustCompileMultiline(`^[DGMT][0-9]{2}\*\r?\n`),
|
||||
regex.MustCompileMultiline(`^[DGMT][0-9]{2}\*(?:\r?\n|\r)`),
|
||||
),
|
||||
},
|
||||
".cs": &Heuristics{
|
||||
@ -931,7 +935,7 @@ var ContentHeuristics = map[string]*Heuristics{
|
||||
".ftl": &Heuristics{
|
||||
rule.Or(
|
||||
rule.MatchingLanguages("FreeMarker"),
|
||||
regex.MustCompileRuby(`^(?:<|[a-zA-Z-][a-zA-Z0-9_-]+[ \t]+\w)|\$\{\w+[^\n]*?\}|^[ \t]*(?:<#--.*?-->|<#([a-z]+)(?=\s|>)[^>]*>.*?</#\1>|\[#--.*?--\]|\[#([a-z]+)(?=\s|\])[^\]]*\].*?\[#\2\])`),
|
||||
regex.MustCompileRuby(`^(?:<|[a-zA-Z-][a-zA-Z0-9_-]+[ \t]+\w)|\$\{\w+[^\r\n]*?\}|^[ \t]*(?:<#--.*?-->|<#([a-z]+)(?=\s|>)[^>]*>.*?</#\1>|\[#--.*?--\]|\[#([a-z]+)(?=\s|\])[^\]]*\].*?\[#\2\])`),
|
||||
),
|
||||
rule.Or(
|
||||
rule.MatchingLanguages("Fluent"),
|
||||
@ -945,7 +949,7 @@ var ContentHeuristics = map[string]*Heuristics{
|
||||
),
|
||||
rule.Or(
|
||||
rule.MatchingLanguages("G-code"),
|
||||
regex.MustCompileMultiline(`^[MG][0-9]+\n`),
|
||||
regex.MustCompileMultiline(`^[MG][0-9]+(?:\r?\n|\r)`),
|
||||
),
|
||||
},
|
||||
".gd": &Heuristics{
|
||||
@ -1224,7 +1228,7 @@ var ContentHeuristics = map[string]*Heuristics{
|
||||
),
|
||||
rule.Or(
|
||||
rule.MatchingLanguages("M4"),
|
||||
regex.MustCompileMultiline(`^dnl|^divert\((?:-?\d+)?\)|^\w+\(`+"`"+`[^\n]*?'[),]`),
|
||||
regex.MustCompileMultiline(`^dnl|^divert\((?:-?\d+)?\)|^\w+\(`+"`"+`[^\r\n]*?'[),]`),
|
||||
),
|
||||
rule.Or(
|
||||
rule.MatchingLanguages("Monkey C"),
|
||||
@ -1335,7 +1339,7 @@ var ContentHeuristics = map[string]*Heuristics{
|
||||
),
|
||||
rule.Or(
|
||||
rule.MatchingLanguages("Gerber Image"),
|
||||
regex.MustCompileMultiline(`^[DGMT][0-9]{2}\*\r?\n`),
|
||||
regex.MustCompileMultiline(`^[DGMT][0-9]{2}\*(?:\r?\n|\r)`),
|
||||
),
|
||||
rule.Or(
|
||||
rule.MatchingLanguages("Text"),
|
||||
@ -1449,7 +1453,7 @@ var ContentHeuristics = map[string]*Heuristics{
|
||||
".pod": &Heuristics{
|
||||
rule.Or(
|
||||
rule.MatchingLanguages("Pod 6"),
|
||||
regex.MustCompileMultiline(`^[\s&&[^\n]]*=(comment|begin pod|begin para|item\d+)`),
|
||||
regex.MustCompileMultiline(`^[\s&&[^\r\n]]*=(comment|begin pod|begin para|item\d+)`),
|
||||
),
|
||||
rule.Always(
|
||||
rule.MatchingLanguages("Pod"),
|
||||
@ -1529,7 +1533,7 @@ var ContentHeuristics = map[string]*Heuristics{
|
||||
".q": &Heuristics{
|
||||
rule.Or(
|
||||
rule.MatchingLanguages("q"),
|
||||
regex.MustCompileMultiline(`((?i:[A-Z.][\w.]*:\{)|(^|\n)\\(cd?|d|l|p|ts?) )`),
|
||||
regex.MustCompileMultiline(`((?i:[A-Z.][\w.]*:\{)|^\\(cd?|d|l|p|ts?) )`),
|
||||
),
|
||||
rule.Or(
|
||||
rule.MatchingLanguages("HiveQL"),
|
||||
@ -1551,6 +1555,10 @@ var ContentHeuristics = map[string]*Heuristics{
|
||||
rule.MatchingLanguages("Rebol"),
|
||||
regex.MustCompileMultiline(`(?i:\bRebol\b)`),
|
||||
),
|
||||
rule.Or(
|
||||
rule.MatchingLanguages("Rez"),
|
||||
regex.MustCompileMultiline(`(#include\s+["<](Types\.r|Carbon\/Carbon\.r)[">])|((resource|data|type)\s+'[A-Za-z0-9]{4}'\s+((\(.*\)\s+){0,1}){)`),
|
||||
),
|
||||
rule.Or(
|
||||
rule.MatchingLanguages("R"),
|
||||
regex.MustCompileMultiline(`<-|^\s*#`),
|
||||
@ -1638,7 +1646,7 @@ var ContentHeuristics = map[string]*Heuristics{
|
||||
),
|
||||
rule.Or(
|
||||
rule.MatchingLanguages("Gerber Image"),
|
||||
regex.MustCompileMultiline(`^[DGMT][0-9]{2}\*\r?\n`),
|
||||
regex.MustCompileMultiline(`^[DGMT][0-9]{2}\*(?:\r?\n|\r)`),
|
||||
),
|
||||
},
|
||||
".sql": &Heuristics{
|
||||
@ -1690,7 +1698,7 @@ var ContentHeuristics = map[string]*Heuristics{
|
||||
".stl": &Heuristics{
|
||||
rule.Or(
|
||||
rule.MatchingLanguages("STL"),
|
||||
regex.MustCompileRuby(`\A\s*solid(?=$|\s)(?:.|[\r\n])*?^endsolid(?:$|\s)`),
|
||||
regex.MustCompileMultiline(`\A\s*solid(?:$|\s)[\s\S]*^endsolid(?:$|\s)`),
|
||||
),
|
||||
},
|
||||
".sw": &Heuristics{
|
||||
@ -1805,10 +1813,19 @@ var ContentHeuristics = map[string]*Heuristics{
|
||||
rule.MatchingLanguages("Text"),
|
||||
),
|
||||
},
|
||||
".typ": &Heuristics{
|
||||
rule.Or(
|
||||
rule.MatchingLanguages("Typst"),
|
||||
regex.MustCompileMultiline(`^#(import|show|let|set)`),
|
||||
),
|
||||
rule.Always(
|
||||
rule.MatchingLanguages("XML"),
|
||||
),
|
||||
},
|
||||
".url": &Heuristics{
|
||||
rule.Or(
|
||||
rule.MatchingLanguages("INI"),
|
||||
regex.MustCompileRuby(`^\[InternetShortcut\](?:\r?\n|\r)(?>[^\s\[][^\n]*(?:\r?\n|\r))*URL=`),
|
||||
regex.MustCompileRuby(`^\[InternetShortcut\](?:\r?\n|\r)(?>[^\s\[][^\r\n]*(?:\r?\n|\r))*URL=`),
|
||||
),
|
||||
},
|
||||
".v": &Heuristics{
|
||||
|
Reference in New Issue
Block a user