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 = []
|
matches = []
|
||||||
if (/@(interface|class|protocol|synchronised|selector|implementation)/.match(data))
|
if (/@(interface|class|protocol|synchronised|selector|implementation)/.match(data))
|
||||||
matches << Language["Objective-C"]
|
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
|
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))
|
/template\s*</.match(data) or /[^@]class/.match(data))
|
||||||
matches << Language["C++"]
|
matches << Language["C++"]
|
||||||
|
end
|
||||||
matches
|
matches
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user