mirror of
https://github.com/KevinMidboe/linguist.git
synced 2025-12-29 13:21:01 +00:00
Fixed the C++ class matching regex that was breaking the test for C/jni_layer.h
This commit is contained in:
@@ -43,7 +43,7 @@ module Linguist
|
|||||||
matches << Language["Objective-C"]
|
matches << Language["Objective-C"]
|
||||||
end
|
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
|
||||||
/^\s*template\s*</.match(data) or /[^@]class\s+\w+/.match(data) or /^[^@](private|public|protected):$/.match(data))
|
/^\s*template\s*</.match(data) or /^[^@]class\s+\w+/.match(data) or /^[^@](private|public|protected):$/.match(data))
|
||||||
matches << Language["C++"]
|
matches << Language["C++"]
|
||||||
end
|
end
|
||||||
matches
|
matches
|
||||||
|
|||||||
Reference in New Issue
Block a user