Added the end statements for the two new if statmeents

Did not know ends were required on one-liner ifs. Fixed.
This commit is contained in:
Rachel Mant
2014-04-02 13:44:17 +01:00
parent 667f3de26b
commit dfba2a31a5

View File

@@ -39,9 +39,11 @@ module Linguist
matches = []
if (/@(interface|class|protocol|synchronised|selector|implementation)/.match(data))
matches << Language["Objective-C"]
end
if (/^\s*#\s*include <(cstdint|string|vector|map|list|array|bitset|queue|stack|forward_list|unordered_map|unordered_set)>$/.match(data) or
/template\s*</.match(data) or /[^@]class/.match(data))
matches << Language["C++"]
end
matches
end