github-linguist 2.6.5 → 2.6.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/linguist/generated.rb +1 -14
- metadata +1 -1
data/lib/linguist/generated.rb
CHANGED
|
@@ -56,8 +56,7 @@ module Linguist
|
|
|
56
56
|
compiled_coffeescript? ||
|
|
57
57
|
xcode_project_file? ||
|
|
58
58
|
generated_net_docfile? ||
|
|
59
|
-
generated_parser?
|
|
60
|
-
compiled_cython_file?
|
|
59
|
+
generated_parser?
|
|
61
60
|
end
|
|
62
61
|
|
|
63
62
|
# Internal: Is the blob an XCode project file?
|
|
@@ -159,17 +158,5 @@ module Linguist
|
|
|
159
158
|
|
|
160
159
|
false
|
|
161
160
|
end
|
|
162
|
-
|
|
163
|
-
# Internal: Is this a compiled C/C++ file from Cython?
|
|
164
|
-
#
|
|
165
|
-
# Cython-compiled C/C++ files typically contain:
|
|
166
|
-
# /* Generated by Cython x.x.x on ... */
|
|
167
|
-
# on the first line.
|
|
168
|
-
#
|
|
169
|
-
# Return true or false
|
|
170
|
-
def compiled_cython_file?
|
|
171
|
-
return false unless ['.c', '.cpp'].include? extname
|
|
172
|
-
return lines[0].include?("Generated by Cython")
|
|
173
|
-
end
|
|
174
161
|
end
|
|
175
162
|
end
|