catch failure to open the filetypes file
parent
feeacaba02
commit
068e47aa45
|
@ -80,7 +80,7 @@ my %highlighters;
|
|||
|
||||
# Parse highlight's config file to get extension => language mappings.
|
||||
sub read_filetypes () {
|
||||
open (IN, $filetypes);
|
||||
open (IN, $filetypes) || error("$filetypes: $!");
|
||||
while (<IN>) {
|
||||
chomp;
|
||||
if (/^\$ext\((.*)\)=(.*)$/) {
|
||||
|
|
Loading…
Reference in New Issue