github-linguist 4.3.1 → 4.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/linguist/blob_helper.rb +25 -0
- data/lib/linguist/documentation.yml +19 -0
- data/lib/linguist/heuristics.rb +2 -2
- data/lib/linguist/language.rb +1 -8
- data/lib/linguist/languages.json +1 -1
- data/lib/linguist/languages.yml +23 -13
- data/lib/linguist/lazy_blob.rb +9 -1
- data/lib/linguist/repository.rb +2 -7
- data/lib/linguist/samples.json +1329 -61
- data/lib/linguist/strategy/modeline.rb +2 -2
- data/lib/linguist/vendor.yml +1 -1
- data/lib/linguist/version.rb +1 -1
- metadata +3 -2
@@ -1,8 +1,8 @@
|
|
1
1
|
module Linguist
|
2
2
|
module Strategy
|
3
3
|
class Modeline
|
4
|
-
EmacsModeline = /-\*-\s*mode:\s*(\w+);?\s*-\*-/
|
5
|
-
VimModeline = /\/\*\s*vim:\s*set\s*(?:ft|filetype)=(\w+):\s*\*\//
|
4
|
+
EmacsModeline = /-\*-\s*mode:\s*(\w+);?\s*-\*-/i
|
5
|
+
VimModeline = /\/\*\s*vim:\s*set\s*(?:ft|filetype)=(\w+):\s*\*\//i
|
6
6
|
|
7
7
|
# Public: Detects language based on Vim and Emacs modelines
|
8
8
|
#
|
data/lib/linguist/vendor.yml
CHANGED
data/lib/linguist/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: github-linguist
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.
|
4
|
+
version: 4.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- GitHub
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-02-
|
11
|
+
date: 2015-02-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: charlock_holmes
|
@@ -149,6 +149,7 @@ files:
|
|
149
149
|
- lib/linguist.rb
|
150
150
|
- lib/linguist/blob_helper.rb
|
151
151
|
- lib/linguist/classifier.rb
|
152
|
+
- lib/linguist/documentation.yml
|
152
153
|
- lib/linguist/file_blob.rb
|
153
154
|
- lib/linguist/generated.rb
|
154
155
|
- lib/linguist/heuristics.rb
|