mirror of
https://github.com/KevinMidboe/linguist.git
synced 2025-10-29 17:50:22 +00:00
Compare commits
12 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ec2e3428ec | ||
|
|
f8601dd663 | ||
|
|
df5faa0f21 | ||
|
|
8341992a38 | ||
|
|
6a8d54e983 | ||
|
|
a18155da49 | ||
|
|
2a1e850924 | ||
|
|
528adc1a04 | ||
|
|
9e7b1bf3cb | ||
|
|
a517de8168 | ||
|
|
a4ab7555e2 | ||
|
|
7f9142a41d |
@@ -1,6 +1,6 @@
|
|||||||
Gem::Specification.new do |s|
|
Gem::Specification.new do |s|
|
||||||
s.name = 'github-linguist'
|
s.name = 'github-linguist'
|
||||||
s.version = '2.10.10'
|
s.version = '2.10.11'
|
||||||
s.summary = "GitHub Language detection"
|
s.summary = "GitHub Language detection"
|
||||||
s.description = 'We use this library at GitHub to detect blob languages, highlight code, ignore binary files, suppress generated files in diffs, and generate language breakdown graphs.'
|
s.description = 'We use this library at GitHub to detect blob languages, highlight code, ignore binary files, suppress generated files in diffs, and generate language breakdown graphs.'
|
||||||
|
|
||||||
|
|||||||
@@ -222,16 +222,14 @@ module Linguist
|
|||||||
lines[1].include?("#include <jni.h>")
|
lines[1].include?("#include <jni.h>")
|
||||||
end
|
end
|
||||||
|
|
||||||
# node_modules/ can contain large amounts of files, in general not meant
|
# Internal: Is the blob part of node_modules/, which are not meant for humans in pull requests.
|
||||||
# for humans in pull requests.
|
|
||||||
#
|
#
|
||||||
# Returns true or false.
|
# Returns true or false.
|
||||||
def node_modules?
|
def node_modules?
|
||||||
!!name.match(/node_modules\//)
|
!!name.match(/node_modules\//)
|
||||||
end
|
end
|
||||||
|
|
||||||
# the php composer tool generates a lock file to represent a specific dependency state.
|
# Internal: Is the blob a generated php composer lock file?
|
||||||
# In general not meant for humans in pull requests.
|
|
||||||
#
|
#
|
||||||
# Returns true or false.
|
# Returns true or false.
|
||||||
def composer_lock?
|
def composer_lock?
|
||||||
|
|||||||
@@ -718,6 +718,12 @@ Handlebars:
|
|||||||
- .html.handlebars
|
- .html.handlebars
|
||||||
- .html.hbs
|
- .html.hbs
|
||||||
|
|
||||||
|
Harbour:
|
||||||
|
type: programming
|
||||||
|
lexer: Text only
|
||||||
|
color: "#0e60e3"
|
||||||
|
primary_extension: .hb
|
||||||
|
|
||||||
Haskell:
|
Haskell:
|
||||||
type: programming
|
type: programming
|
||||||
color: "#29b544"
|
color: "#29b544"
|
||||||
@@ -1106,6 +1112,7 @@ OCaml:
|
|||||||
primary_extension: .ml
|
primary_extension: .ml
|
||||||
extensions:
|
extensions:
|
||||||
- .eliomi
|
- .eliomi
|
||||||
|
- .ml4
|
||||||
- .mli
|
- .mli
|
||||||
- .mll
|
- .mll
|
||||||
- .mly
|
- .mly
|
||||||
@@ -1300,6 +1307,8 @@ Prolog:
|
|||||||
type: programming
|
type: programming
|
||||||
color: "#74283c"
|
color: "#74283c"
|
||||||
primary_extension: .prolog
|
primary_extension: .prolog
|
||||||
|
extensions:
|
||||||
|
- .pl
|
||||||
|
|
||||||
Protocol Buffer:
|
Protocol Buffer:
|
||||||
type: markup
|
type: markup
|
||||||
|
|||||||
@@ -36,6 +36,10 @@
|
|||||||
# Bootstrap minified css and js
|
# Bootstrap minified css and js
|
||||||
- (^|/)bootstrap([^.]*)(\.min)?\.(js|css)$
|
- (^|/)bootstrap([^.]*)(\.min)?\.(js|css)$
|
||||||
|
|
||||||
|
# Foundation css
|
||||||
|
- foundation.min.css
|
||||||
|
- foundation.css
|
||||||
|
|
||||||
# Vendored dependencies
|
# Vendored dependencies
|
||||||
- thirdparty/
|
- thirdparty/
|
||||||
- vendors?/
|
- vendors?/
|
||||||
|
|||||||
Reference in New Issue
Block a user