github-linguist 4.7.5 → 4.7.6
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 +32 -0
- data/lib/linguist/samples.json +5256 -78
- data/lib/linguist/strategy/modeline.rb +2 -2
- data/lib/linguist/version.rb +1 -1
- metadata +2 -2
@@ -5,12 +5,12 @@ module Linguist
|
|
5
5
|
|
6
6
|
# First form vim modeline
|
7
7
|
# [text]{white}{vi:|vim:|ex:}[white]{options}
|
8
|
-
# ex: 'vim: syntax=
|
8
|
+
# ex: 'vim: syntax=ruby'
|
9
9
|
VIM_MODELINE_1 = /(?:vim|vi|ex):\s*(?:ft|filetype|syntax)=(\w+)\s?/i
|
10
10
|
|
11
11
|
# Second form vim modeline (compatible with some versions of Vi)
|
12
12
|
# [text]{white}{vi:|vim:|Vim:|ex:}[white]se[t] {options}:[text]
|
13
|
-
# ex: 'vim set syntax=
|
13
|
+
# ex: 'vim set syntax=ruby:'
|
14
14
|
VIM_MODELINE_2 = /(?:vim|vi|Vim|ex):\s*se(?:t)?.*\s(?:ft|filetype|syntax)=(\w+)\s?.*:/i
|
15
15
|
|
16
16
|
MODELINES = [EMACS_MODELINE, VIM_MODELINE_1, VIM_MODELINE_2]
|
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.7.
|
4
|
+
version: 4.7.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- GitHub
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-02-
|
11
|
+
date: 2016-02-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: charlock_holmes
|