mirror of
https://github.com/KevinMidboe/linguist.git
synced 2025-10-29 17:50:22 +00:00
Added @property and @end as an Obj-C heuristic for issue #1344
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user