mirror of
https://github.com/ralsina/tartrazine.git
synced 2025-06-27 14:47:50 -03:00
Updated Linguist to v7.29.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: ee9119e70111d46842788b2bc1666ec1d1ea9e2a
|
||||
// Extracted from github/linguist commit: b28dd4b0d5ef6bfaca56f1d34571fddef13e3ead
|
||||
|
||||
package data
|
||||
|
||||
@ -646,7 +646,7 @@ var ContentHeuristics = map[string]*Heuristics{
|
||||
),
|
||||
rule.Or(
|
||||
rule.MatchingLanguages(""),
|
||||
regex.MustCompileMultiline(`\b(?:VBA|[vV]ba)(?:\b|[0-9A-Z_])|^[ ]*(?:Public|Private)? Declare PtrSafe (?:Sub|Function)\b|^[ ]*#If Win64\b|^[ ]*(?:Dim|Const) [0-9a-zA-Z_]*[ ]*As Long(?:Ptr|Long)\b|^[ ]*Option (?:Private Module|Compare Database)\b|(?: |\()(?:Access|Excel|Outlook|PowerPoint|Visio|Word|VBIDE)\.\w|\b(?:(?:Active)?VBProjects?|VBComponents?|Application\.(?:VBE|ScreenUpdating))\b|\b(?:ThisDrawing|AcadObject|Active(?:Explorer|Inspector|Window\.Presentation|Presentation|Document)|Selection\.(?:Find|Paragraphs))\b|\b(?:(?:This|Active)?Workbooks?|Worksheets?|Active(?:Sheet|Chart|Cell)|WorksheetFunction)\b|\b(?:Range\(".*|Cells\([0-9a-zA-Z_]*, (?:[0-9a-zA-Z_]*|"[a-zA-Z]{1,3}"))\)`),
|
||||
regex.MustCompileMultiline(`\b(?:VBA|[vV]ba)(?:\b|[0-9A-Z_])|^[ ]*(?:Public|Private)? Declare PtrSafe (?:Sub|Function)\b|^[ ]*#If Win64\b|^[ ]*(?:Dim|Const) [0-9a-zA-Z_]*[ ]*As Long(?:Ptr|Long)\b|^[ ]*Option (?:Private Module|Compare (?:Database|Text|Binary))\b|(?: |\()(?:Access|Excel|Outlook|PowerPoint|Visio|Word|VBIDE)\.\w|\b(?:(?:Active)?VBProjects?|VBComponents?|Application\.(?:VBE|ScreenUpdating))\b|\b(?:ThisDrawing|AcadObject|Active(?:Explorer|Inspector|Window\.Presentation|Presentation|Document)|Selection\.(?:Find|Paragraphs))\b|\b(?:(?:This|Active)?Workbooks?|Worksheets?|Active(?:Sheet|Chart|Cell)|WorksheetFunction)\b|\b(?:Range\(".*|Cells\([0-9a-zA-Z_]*, (?:[0-9a-zA-Z_]*|"[a-zA-Z]{1,3}"))\)`),
|
||||
),
|
||||
),
|
||||
rule.Or(
|
||||
@ -661,7 +661,7 @@ var ContentHeuristics = map[string]*Heuristics{
|
||||
),
|
||||
rule.Or(
|
||||
rule.MatchingLanguages("BitBake"),
|
||||
regex.MustCompileMultiline(`^\s*(# |include|require)\b`),
|
||||
regex.MustCompileMultiline(`^(# |include|require|inherit)\b`),
|
||||
),
|
||||
rule.Or(
|
||||
rule.MatchingLanguages("Clojure"),
|
||||
@ -1005,6 +1005,16 @@ var ContentHeuristics = map[string]*Heuristics{
|
||||
regex.MustCompileRuby(`^\s*#\s*(?:using|insert|include|define|namespace)[ \t]+\w|^\s*(?>(?:autoexec|private)\s+){0,2}function\s+(?>(?:autoexec|private)\s+){0,2}\w+\s*\(|\b(?:level|self)[ \t]+thread[ \t]+(?:\[\[[ \t]*(?>\w+\.)*\w+[ \t]*\]\]|\w+)[ \t]*\([^\r\n\)]*\)[ \t]*;|^[ \t]*#[ \t]*(?:precache|using_animtree)[ \t]*\(`),
|
||||
),
|
||||
},
|
||||
".gts": &Heuristics{
|
||||
rule.Or(
|
||||
rule.MatchingLanguages("Gerber Image"),
|
||||
regex.MustCompileMultiline(`^G0.`),
|
||||
),
|
||||
rule.Not(
|
||||
rule.MatchingLanguages("Glimmer TS"),
|
||||
regex.MustCompileMultiline(`^G0.`),
|
||||
),
|
||||
},
|
||||
".h": &Heuristics{
|
||||
rule.Or(
|
||||
rule.MatchingLanguages("Objective-C"),
|
||||
@ -1012,7 +1022,7 @@ var ContentHeuristics = map[string]*Heuristics{
|
||||
),
|
||||
rule.Or(
|
||||
rule.MatchingLanguages("C++"),
|
||||
regex.MustCompileMultiline(`^\s*#\s*include <(cstdint|string|vector|map|list|array|bitset|queue|stack|forward_list|unordered_map|unordered_set|(i|o|io)stream)>|^\s*template\s*<|^[ \t]*(try|constexpr)|^[ \t]*catch\s*\(|^[ \t]*(class|(using[ \t]+)?namespace)\s+\w+|^[ \t]*(private|public|protected):$|std::\w+`),
|
||||
regex.MustCompileMultiline(`^\s*#\s*include <(cstdint|string|vector|map|list|array|bitset|queue|stack|forward_list|unordered_map|unordered_set|(i|o|io)stream)>|^\s*template\s*<|^[ \t]*(try|constexpr)|^[ \t]*catch\s*\(|^[ \t]*(class|(using[ \t]+)?namespace)\s+\w+|^[ \t]*(private|public|protected):$|__has_cpp_attribute|__cplusplus >|std::\w+`),
|
||||
),
|
||||
rule.Always(
|
||||
rule.MatchingLanguages("C"),
|
||||
@ -1077,6 +1087,10 @@ var ContentHeuristics = map[string]*Heuristics{
|
||||
rule.MatchingLanguages("Pascal"),
|
||||
regex.MustCompileMultiline(`(?i:^\s*\{\$(?:mode|ifdef|undef|define)[ ]+[a-z0-9_]+\})|^\s*end[.;]\s*$`),
|
||||
),
|
||||
rule.Or(
|
||||
rule.MatchingLanguages("BitBake"),
|
||||
regex.MustCompileMultiline(`^inherit(\s+[\w.-]+)+\s*$`),
|
||||
),
|
||||
},
|
||||
".json": &Heuristics{
|
||||
rule.Or(
|
||||
@ -1312,6 +1326,16 @@ var ContentHeuristics = map[string]*Heuristics{
|
||||
rule.MatchingLanguages("Linux Kernel Module", "AMPL"),
|
||||
),
|
||||
},
|
||||
".mojo": &Heuristics{
|
||||
rule.Or(
|
||||
rule.MatchingLanguages("Mojo"),
|
||||
regex.MustCompileMultiline(`^\s*(alias|def|from|fn|import|struct|trait)\s`),
|
||||
),
|
||||
rule.Or(
|
||||
rule.MatchingLanguages("XML"),
|
||||
regex.MustCompileMultiline(`^\s*<\?xml`),
|
||||
),
|
||||
},
|
||||
".ms": &Heuristics{
|
||||
rule.Or(
|
||||
rule.MatchingLanguages("Roff"),
|
||||
|
Reference in New Issue
Block a user