mirror of
https://github.com/KevinMidboe/linguist.git
synced 2025-10-29 17:50:22 +00:00
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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user