mirror of
https://github.com/ralsina/tartrazine.git
synced 2025-06-19 06:33:06 -03:00
Update to Linguist v7.16.1
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: 95636e415749b0bf8fbf3f86922f788cf91c11a2
|
||||
// Extracted from github/linguist commit: cdf42b16b136fc7f0a491d36c415f34fcfb9368a
|
||||
|
||||
package data
|
||||
|
||||
@ -802,6 +802,12 @@ var ContentHeuristics = map[string]*Heuristics{
|
||||
regexp.MustCompile(`(?m)#include|#pragma\s+(rs|version)|__attribute__`),
|
||||
),
|
||||
},
|
||||
".ftl": &Heuristics{
|
||||
rule.Or(
|
||||
rule.MatchingLanguages("Fluent"),
|
||||
regexp.MustCompile(`(?m)^-?[a-zA-Z][a-zA-Z0-9_-]* *=|\{\$-?[a-zA-Z][-\w]*(?:\.[a-zA-Z][-\w]*)?\}`),
|
||||
),
|
||||
},
|
||||
".gd": &Heuristics{
|
||||
rule.Or(
|
||||
rule.MatchingLanguages("GAP"),
|
||||
@ -852,6 +858,9 @@ var ContentHeuristics = map[string]*Heuristics{
|
||||
rule.MatchingLanguages("C++"),
|
||||
regexp.MustCompile(`(?m)^\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+`),
|
||||
),
|
||||
rule.Always(
|
||||
rule.MatchingLanguages("C"),
|
||||
),
|
||||
},
|
||||
".hh": &Heuristics{
|
||||
rule.Or(
|
||||
@ -889,12 +898,16 @@ var ContentHeuristics = map[string]*Heuristics{
|
||||
),
|
||||
rule.Or(
|
||||
rule.MatchingLanguages("SourcePawn"),
|
||||
regexp.MustCompile(`(?m)^public\s+(?:SharedPlugin(?:\s+|:)__pl_\w+\s*=(?:\s*{)?|(?:void\s+)?__pl_\w+_SetNTVOptional\(\)(?:\s*{)?)`),
|
||||
regexp.MustCompile(`(?m)^public\s+(?:SharedPlugin(?:\s+|:)__pl_\w+\s*=(?:\s*{)?|(?:void\s+)?__pl_\w+_SetNTVOptional\(\)(?:\s*{)?)|^methodmap\s+\w+\s+<\s+\w+|^\s*MarkNativeAsOptional\s*\(`),
|
||||
),
|
||||
rule.Or(
|
||||
rule.MatchingLanguages("POV-Ray SDL"),
|
||||
regexp.MustCompile(`(?m)^\s*#(declare|local|macro|while)\s`),
|
||||
),
|
||||
rule.Or(
|
||||
rule.MatchingLanguages("Pascal"),
|
||||
regexp.MustCompile(`(?m)(?i:^\s*{\$(?:mode|ifdef|undef|define)[ ]+[a-z0-9_]+})|^\s*end[.;]\s*$`),
|
||||
),
|
||||
},
|
||||
".l": &Heuristics{
|
||||
rule.Or(
|
||||
@ -1288,7 +1301,7 @@ var ContentHeuristics = map[string]*Heuristics{
|
||||
regexp.MustCompile(`(?m)^[^#!;][^=]*=`),
|
||||
),
|
||||
rule.Or(
|
||||
rule.MatchingLanguages("Java properties"),
|
||||
rule.MatchingLanguages("Java Properties"),
|
||||
regexp.MustCompile(`(?m)^[^#!][^:]*:`),
|
||||
),
|
||||
},
|
||||
|
Reference in New Issue
Block a user