From 44eebde3945e4c91873319b68f011e561aa22ad6 Mon Sep 17 00:00:00 2001 From: Rachel Mant Date: Wed, 3 Sep 2014 18:33:24 +0100 Subject: [PATCH] Added @property and @end as an Obj-C heuristic for issue #1344 --- lib/linguist/heuristics.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/linguist/heuristics.rb b/lib/linguist/heuristics.rb index e14d77c7..7efc4d40 100644 --- a/lib/linguist/heuristics.rb +++ b/lib/linguist/heuristics.rb @@ -40,7 +40,7 @@ module Linguist # Returns an array of Languages or [] def self.disambiguate_c(data, languages) matches = [] - if (/@(interface|class|protocol|synchronised|selector|implementation)/.match(data)) + if (/@(interface|class|protocol|property|end|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|(i|o|io)stream)>/.match(data) or