Subject: | PATCH: tex filetype |
Attached patch adds tex filetype (.tex). It is against svn version
(revision 123).
Subject: | tex.patch |
Index: t/filetypes.t
===================================================================
--- t/filetypes.t (Revision 123)
+++ t/filetypes.t (Arbeitskopie)
@@ -3,7 +3,7 @@
use warnings;
use strict;
-use Test::More tests => 18;
+use Test::More tests => 19;
use Data::Dumper;
BEGIN {
@@ -49,3 +49,5 @@
is(App::Ack::filetypes('t/etc/shebang.empty.xxx'), 'binary',
'empty file returns "binary"');
+
+ok(App::Ack::is_filetype('latex.tex', 'tex'), 'tex file');
Index: Ack.pm
===================================================================
--- Ack.pm (Revision 123)
+++ Ack.pm (Arbeitskopie)
@@ -50,6 +50,7 @@
scheme => [qw( scm )],
shell => [qw( sh bash csh ksh zsh )],
sql => [qw( sql ctl )],
+ tex => [qw( tex )],
tt => [qw( tt tt2 )],
vim => [qw( vim )],
yaml => [qw( yaml yml )],