mirror of
https://github.com/KevinMidboe/linguist.git
synced 2026-01-01 23:16:16 +00:00
Use full lexer name in config file
This commit is contained in:
@@ -154,7 +154,7 @@ module Linguist
|
||||
@aliases = [default_alias_name] + (attributes[:aliases] || [])
|
||||
|
||||
# Lookup Lexer object
|
||||
@lexer = Lexer.find_by_alias(attributes[:lexer] || default_alias_name) ||
|
||||
@lexer = Lexer.find_by_name(attributes[:lexer] || name) ||
|
||||
raise(ArgumentError, "#{@name} is missing lexer")
|
||||
|
||||
# Set legacy search term
|
||||
|
||||
Reference in New Issue
Block a user