Merge branch 'FS-samples' of github.com:github/linguist into FS-samples

This commit is contained in:
Arfon Smith
2014-12-03 13:09:00 -06:00
2 changed files with 51 additions and 2 deletions

View File

@@ -137,9 +137,9 @@ module Linguist
disambiguate "F#", "Forth", "GLSL" do |data|
if /^(: |new-device)/.match(data)
Language["Forth"]
elsif /^(#light|import|let|module|namespace|open|type)/.match(data)
elsif /^\s*(#light|import|let|module|namespace|open|type)/.match(data)
Language["F#"]
elsif /^(#include|#pragma|precision|uniform|varying|void)/.match(data)
elsif /^\s*(#include|#pragma|precision|uniform|varying|void)/.match(data)
Language["GLSL"]
end
end