Merge branch 'master' into FS-samples

This commit is contained in:
Arfon Smith
2014-12-03 13:08:41 -06:00
6 changed files with 7 additions and 16 deletions

View File

@@ -1864,7 +1864,7 @@ Oxygene:
extensions: extensions:
- .oxygene - .oxygene
tm_scope: none tm_scope: none
Oz: Oz:
type: programming type: programming
color: "#fcaf3e" color: "#fcaf3e"
@@ -2383,7 +2383,6 @@ Sass:
group: CSS group: CSS
extensions: extensions:
- .sass - .sass
- .scss
Scala: Scala:
type: programming type: programming

View File

@@ -19,7 +19,7 @@ module Linguist
# Returns a String or nil # Returns a String or nil
def self.interpreter(data) def self.interpreter(data)
lines = data.lines lines = data.lines
return unless match = /^#! ?(.*)$/.match(lines.first) return unless match = /^#! ?(.+)$/.match(lines.first)
tokens = match[1].split(' ') tokens = match[1].split(' ')
script = tokens.first.split('/').last script = tokens.first.split('/').last

View File

@@ -1,3 +1,3 @@
module Linguist module Linguist
VERSION = "4.2.1" VERSION = "4.2.2"
end end

View File

@@ -1,12 +0,0 @@
$blue: #3bbfce;
$margin: 16px;
.content_navigation {
color: $blue;
}
.border {
padding: $margin / 2;
margin: $margin / 2;
border: 2px $blue solid;
}

View File

@@ -13,6 +13,9 @@ set +x
mkdir -p ./vendor/gems mkdir -p ./vendor/gems
# Clean out any unversioned files
git clean -fd
bundle install --local --path ./vendor/gems bundle install --local --path ./vendor/gems
bundle exec rake samples bundle exec rake samples
bundle exec rake bundle exec rake

View File

@@ -16,6 +16,7 @@ class TestShebang < Test::Unit::TestCase
assert_interpreter nil, "\n\n\n\n\n" assert_interpreter nil, "\n\n\n\n\n"
assert_interpreter nil, " #!/usr/sbin/ruby" assert_interpreter nil, " #!/usr/sbin/ruby"
assert_interpreter nil, "\n#!/usr/sbin/ruby" assert_interpreter nil, "\n#!/usr/sbin/ruby"
assert_interpreter nil, "#!"
assert_interpreter "ruby", "#!/usr/sbin/ruby\n# bar" assert_interpreter "ruby", "#!/usr/sbin/ruby\n# bar"
assert_interpreter "ruby", "#!/usr/bin/ruby\n# foo" assert_interpreter "ruby", "#!/usr/bin/ruby\n# foo"