github-linguist 4.3.0 → 4.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/linguist/languages.json +1 -1
- data/lib/linguist/languages.yml +17 -8
- data/lib/linguist/samples.json +1152 -536
- data/lib/linguist/strategy/modeline.rb +1 -1
- data/lib/linguist/version.rb +1 -1
- metadata +2 -2
@@ -1,7 +1,7 @@
|
|
1
1
|
module Linguist
|
2
2
|
module Strategy
|
3
3
|
class Modeline
|
4
|
-
EmacsModeline = /-\*-\s*
|
4
|
+
EmacsModeline = /-\*-\s*mode:\s*(\w+);?\s*-\*-/
|
5
5
|
VimModeline = /\/\*\s*vim:\s*set\s*(?:ft|filetype)=(\w+):\s*\*\//
|
6
6
|
|
7
7
|
# Public: Detects language based on Vim and Emacs modelines
|
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.3.
|
4
|
+
version: 4.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- GitHub
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-02-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: charlock_holmes
|