mirror of
https://github.com/ralsina/tartrazine.git
synced 2025-06-27 14:47:50 -03:00
Updated Linguist to v7.23.0
This commit is contained in:
committed by
Alex Bezzubov
parent
0e58945703
commit
afe3bdf45a
@ -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: d7799da826e01acdb8f84694d33116dccaabe9c2
|
||||
// Extracted from github/linguist commit: bf853f1c663903e3ee35935189760191f1c45e1c
|
||||
|
||||
package data
|
||||
|
||||
@ -647,6 +647,20 @@ var ContentHeuristics = map[string]*Heuristics{
|
||||
regex.MustCompileMultiline(`\((def|defn|defmacro|let)\s`),
|
||||
),
|
||||
},
|
||||
".bf": &Heuristics{
|
||||
rule.Or(
|
||||
rule.MatchingLanguages("Beef"),
|
||||
regex.MustCompileMultiline(`(?-m)^\s*using\s+(System|Beefy)(\.(.*))?;\s*$`),
|
||||
),
|
||||
rule.Or(
|
||||
rule.MatchingLanguages("HyPhy"),
|
||||
regex.MustCompileMultiline(`(?-m)^\s*#include\s+".*";\s*$|\sfprintf\s*\(`),
|
||||
),
|
||||
rule.Or(
|
||||
rule.MatchingLanguages("Brainfuck"),
|
||||
regex.MustCompileMultiline(`(>\+>|>\+<)`),
|
||||
),
|
||||
},
|
||||
".bi": &Heuristics{
|
||||
rule.Or(
|
||||
rule.MatchingLanguages("FreeBasic"),
|
||||
@ -712,7 +726,7 @@ var ContentHeuristics = map[string]*Heuristics{
|
||||
),
|
||||
rule.Or(
|
||||
rule.MatchingLanguages("C#"),
|
||||
regex.MustCompileMultiline(`^(\s*namespace\s*[\w\.]+\s*{|\s*\/\/)`),
|
||||
regex.MustCompileMultiline(`^\s*(using\s+[A-Z][\s\w.]+;|namespace\s*[\w\.]+\s*({|;)|\/\/)`),
|
||||
),
|
||||
},
|
||||
".csc": &Heuristics{
|
||||
@ -864,6 +878,16 @@ var ContentHeuristics = map[string]*Heuristics{
|
||||
regex.MustCompileMultiline(`^-?[a-zA-Z][a-zA-Z0-9_-]* *=|\{\$-?[a-zA-Z][-\w]*(?:\.[a-zA-Z][-\w]*)?\}`),
|
||||
),
|
||||
},
|
||||
".g": &Heuristics{
|
||||
rule.Or(
|
||||
rule.MatchingLanguages("GAP"),
|
||||
regex.MustCompileMultiline(`\s*(Declare|BindGlobal|KeyDependentOperation|Install(Method|GlobalFunction)|SetPackageInfo)`),
|
||||
),
|
||||
rule.Or(
|
||||
rule.MatchingLanguages("G-code"),
|
||||
regex.MustCompileMultiline(`^[MG][0-9]+\n`),
|
||||
),
|
||||
},
|
||||
".gd": &Heuristics{
|
||||
rule.Or(
|
||||
rule.MatchingLanguages("GAP"),
|
||||
@ -1356,7 +1380,7 @@ var ContentHeuristics = map[string]*Heuristics{
|
||||
),
|
||||
rule.Or(
|
||||
rule.MatchingLanguages("IDL"),
|
||||
regex.MustCompileMultiline(`^\s*function[ \w,]+$`),
|
||||
regex.MustCompileMultiline(`^\s*(?i:function|pro|compile_opt) \w[ \w,:]*$`),
|
||||
),
|
||||
},
|
||||
".properties": &Heuristics{
|
||||
@ -1486,6 +1510,16 @@ var ContentHeuristics = map[string]*Heuristics{
|
||||
regex.MustCompileMultiline(`(^\s*import (scala|java)\.|^\s*class\b)`),
|
||||
),
|
||||
},
|
||||
".scd": &Heuristics{
|
||||
rule.Or(
|
||||
rule.MatchingLanguages("SuperCollider"),
|
||||
regex.MustCompileMultiline(`(?i:\^(this|super)\.|^\s*(~\w+\s*=\.|SynthDef\b))`),
|
||||
),
|
||||
rule.Or(
|
||||
rule.MatchingLanguages("Markdown"),
|
||||
regex.MustCompileMultiline(`^#+\s+(NAME|SYNOPSIS|DESCRIPTION)`),
|
||||
),
|
||||
},
|
||||
".sol": &Heuristics{
|
||||
rule.Or(
|
||||
rule.MatchingLanguages("Solidity"),
|
||||
@ -1562,6 +1596,12 @@ var ContentHeuristics = map[string]*Heuristics{
|
||||
regex.MustCompileMultiline(`^\s*%[ \t]+|^\s*var\s+\w+(\s*:\s*\w+)?\s*:=\s*\w+`),
|
||||
),
|
||||
},
|
||||
".tag": &Heuristics{
|
||||
rule.Or(
|
||||
rule.MatchingLanguages("Java Server Pages"),
|
||||
regex.MustCompileMultiline(`<%[@!=\s]?\s*(taglib|tag|include|attribute|variable)\s`),
|
||||
),
|
||||
},
|
||||
".toc": &Heuristics{
|
||||
rule.Or(
|
||||
rule.MatchingLanguages("World of Warcraft Addon Data"),
|
||||
@ -1605,6 +1645,28 @@ var ContentHeuristics = map[string]*Heuristics{
|
||||
rule.MatchingLanguages("Vim Help File"),
|
||||
regex.MustCompileRuby(`(?:(?:^|[ \t])(?:vi|Vi(?=m))(?:m[<=>]?[0-9]+|m)?|[ \t]ex)(?=:(?=[ \t]*set?[ \t][^\r\n:]+:)|:(?![ \t]*set?[ \t]))(?:(?:[ \t]*:[ \t]*|[ \t])\w*(?:[ \t]*=(?:[^\\\s]|\\.)*)?)*[ \t:](?:filetype|ft|syntax)[ \t]*=(help)(?=$|\s|:)`),
|
||||
),
|
||||
rule.Or(
|
||||
rule.MatchingLanguages("Adblock Filter List"),
|
||||
regex.MustCompileRuby(`(?x)\A
|
||||
\[
|
||||
(?<version>
|
||||
(?:
|
||||
[Aa]d[Bb]lock
|
||||
(?:[ \t][Pp]lus)?
|
||||
|
|
||||
u[Bb]lock
|
||||
(?:[ \t][Oo]rigin)?
|
||||
|
|
||||
[Aa]d[Gg]uard
|
||||
)
|
||||
(?:[ \t] \d+(?:\.\d+)*+)?
|
||||
)
|
||||
(?:
|
||||
[ \t]?;[ \t]?
|
||||
\g<version>
|
||||
)*+
|
||||
\]`),
|
||||
),
|
||||
rule.Always(
|
||||
rule.MatchingLanguages("Text"),
|
||||
),
|
||||
|
Reference in New Issue
Block a user