makefile is text

This commit is contained in:
Kelvin Sherlock 2013-08-10 20:20:42 -04:00
parent f67e5f11a8
commit ed6c2fc7f7
1 changed files with 5 additions and 2 deletions

View File

@ -17,7 +17,8 @@ TEXT = {
".text" => true, ".text" => true,
".rb" => true, ".rb" => true,
'.mk' => true, '.mk' => true,
'.asm' => true '.asm' => true,
'makefile' => true
} }
def do_error(client, message) def do_error(client, message)
@ -29,9 +30,11 @@ end
def get_type(path) def get_type(path)
ext = File.extname(path).downcase path = path.downcase
ext = File.extname(path)
return 0 if TEXT[ext] return 0 if TEXT[ext]
return 0 if TEXT[path]
return 9 return 9
end end