mirror of
https://github.com/ralsina/tartrazine.git
synced 2025-06-19 06:33:06 -03:00
Sync with Liguist v7.13.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: 3ef386bbb7d10afe2ef81d85c9911871a9f2c221
|
||||
// Extracted from github/linguist commit: 6aed0bd564f55c4f2d987c2e6035eda7aea26375
|
||||
|
||||
package data
|
||||
|
||||
@ -665,6 +665,12 @@ var ContentHeuristics = map[string]*Heuristics{
|
||||
regexp.MustCompile(`(?m)^Class\s`),
|
||||
),
|
||||
},
|
||||
".cmp": &Heuristics{
|
||||
rule.Or(
|
||||
rule.MatchingLanguages("Gerber Image"),
|
||||
regexp.MustCompile(`(?m)^[DGMT][0-9]{2}\*\r?\n`),
|
||||
),
|
||||
},
|
||||
".cs": &Heuristics{
|
||||
rule.Or(
|
||||
rule.MatchingLanguages("Smalltalk"),
|
||||
@ -791,7 +797,7 @@ var ContentHeuristics = map[string]*Heuristics{
|
||||
),
|
||||
rule.Or(
|
||||
rule.MatchingLanguages("Gerber Image"),
|
||||
regexp.MustCompile(`(?m)\*\%$`),
|
||||
regexp.MustCompile(`(?m)^[DGMT][0-9]{2}\*$`),
|
||||
),
|
||||
rule.Always(
|
||||
rule.MatchingLanguages("Game Maker Language"),
|
||||
@ -948,6 +954,15 @@ var ContentHeuristics = map[string]*Heuristics{
|
||||
regexp.MustCompile(`(?m)^\w+\s*:\s*module\s*{`),
|
||||
),
|
||||
},
|
||||
".m4": &Heuristics{
|
||||
rule.Or(
|
||||
rule.MatchingLanguages("M4Sugar"),
|
||||
regexp.MustCompile(`(?m)AC_DEFUN|AC_PREREQ|AC_INIT|^_?m4_`),
|
||||
),
|
||||
rule.Always(
|
||||
rule.MatchingLanguages("M4"),
|
||||
),
|
||||
},
|
||||
".man": &Heuristics{
|
||||
rule.And(
|
||||
rule.MatchingLanguages("Roff Manpage"),
|
||||
@ -1087,6 +1102,10 @@ var ContentHeuristics = map[string]*Heuristics{
|
||||
rule.MatchingLanguages("XML"),
|
||||
regexp.MustCompile(`(?m)^\s*<\?xml\s+version`),
|
||||
),
|
||||
rule.Or(
|
||||
rule.MatchingLanguages("Gerber Image"),
|
||||
regexp.MustCompile(`(?m)^[DGMT][0-9]{2}\*\r?\n`),
|
||||
),
|
||||
rule.Or(
|
||||
rule.MatchingLanguages("Text"),
|
||||
regexp.MustCompile(`(?m)THE_TITLE`),
|
||||
@ -1317,6 +1336,10 @@ var ContentHeuristics = map[string]*Heuristics{
|
||||
rule.MatchingLanguages("RenderScript"),
|
||||
regexp.MustCompile(`(?m)#include|#pragma\s+(rs|version)|__attribute__`),
|
||||
),
|
||||
rule.Or(
|
||||
rule.MatchingLanguages("XML"),
|
||||
regexp.MustCompile(`(?m)^\s*<\?xml`),
|
||||
),
|
||||
},
|
||||
".s": &Heuristics{
|
||||
rule.Or(
|
||||
@ -1337,7 +1360,7 @@ var ContentHeuristics = map[string]*Heuristics{
|
||||
".sol": &Heuristics{
|
||||
rule.Or(
|
||||
rule.MatchingLanguages("Gerber Image"),
|
||||
regexp.MustCompile(`(?m)^G75\*`),
|
||||
regexp.MustCompile(`(?m)^[DGMT][0-9]{2}\*\r?\n`),
|
||||
),
|
||||
},
|
||||
".sql": &Heuristics{
|
||||
|
Reference in New Issue
Block a user