github-linguist 4.5.11 → 4.5.13
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/linguist/heuristics.rb +2 -2
- data/lib/linguist/language.rb +6 -3
- data/lib/linguist/languages.json +1 -1
- data/lib/linguist/languages.yml +11 -1
- data/lib/linguist/samples.json +1331 -178
- data/lib/linguist/strategy/modeline.rb +1 -1
- data/lib/linguist/vendor.yml +1 -1
- data/lib/linguist/version.rb +1 -1
- metadata +2 -2
@@ -2,7 +2,7 @@ module Linguist
|
|
2
2
|
module Strategy
|
3
3
|
class Modeline
|
4
4
|
EmacsModeline = /-\*-\s*(?:(?!mode)[\w-]+\s*:\s*(?:[\w+-]+)\s*;?\s*)*(?:mode\s*:)?\s*([\w+-]+)\s*(?:;\s*(?!mode)[\w-]+\s*:\s*[\w+-]+\s*)*;?\s*-\*-/i
|
5
|
-
VimModeline = /vim:\s*set
|
5
|
+
VimModeline = /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.5.
|
4
|
+
version: 4.5.13
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- GitHub
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-08-
|
11
|
+
date: 2015-08-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: charlock_holmes
|