From dfba2a31a55f6860d09ae76419d49cf98fe44ba4 Mon Sep 17 00:00:00 2001 From: Rachel Mant Date: Wed, 2 Apr 2014 13:44:17 +0100 Subject: [PATCH] Added the end statements for the two new if statmeents Did not know ends were required on one-liner ifs. Fixed. --- lib/linguist/heuristics.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/linguist/heuristics.rb b/lib/linguist/heuristics.rb index 1673206f..94965eaf 100644 --- a/lib/linguist/heuristics.rb +++ b/lib/linguist/heuristics.rb @@ -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*