Skip to content

Commit

Permalink
Fix priority for ApacheConf lexer as it conflicts with ISCdhcpd
Browse files Browse the repository at this point in the history
  • Loading branch information
gandarez committed Aug 18, 2023
1 parent e62e8fa commit ec53c80
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions pkg/language/priority.go
Expand Up @@ -2,9 +2,12 @@ package language

func priority(lang string) (float32, bool) {
prios := map[string]float32{
"FSharp": 0.01,
"Perl": 0.01,
// Higher priority than the TypoScriptLexer, as TypeScript is far more
// Higher priority than the ISCdhcpd, as this lexer defines *.conf
// filename pattern conflicting with ApacheConf lexer
"ApacheConf": 0.01,
"FSharp": 0.01,
"Perl": 0.01,
// Higher priority than the TypoScript, as TypeScript is far more
// common these days
"TypeScript": 0.5,
}
Expand Down

0 comments on commit ec53c80

Please sign in to comment.