Add Filebench Workload Model Language.

Sample file from filebench project, Sun CDDL license.
This commit is contained in:
Lars Brinkhoff
2016-09-09 08:27:17 +02:00
parent df98c86acd
commit dad3191238
3 changed files with 72 additions and 2 deletions

View File

@@ -144,10 +144,22 @@ module Linguist
end
end
disambiguate ".for", ".f" do |data|
fortran_rx = /^([c*][^abd-z]| (subroutine|program|end)\s|\s*!)/i
disambiguate ".f" do |data|
if /^: /.match(data)
Language["Forth"]
elsif /^([c*][^abd-z]| (subroutine|program|end)\s|\s*!)/i.match(data)
elsif data.include?("flowop")
Language["Filebench WML"]
elsif fortran_rx.match(data)
Language["FORTRAN"]
end
end
disambiguate ".for" do |data|
if /^: /.match(data)
Language["Forth"]
elsif fortran_rx.match(data)
Language["FORTRAN"]
end
end

View File

@@ -1135,6 +1135,13 @@ Fantom:
tm_scope: none
ace_mode: text
Filebench WML:
type: programming
extensions:
- .f
tm_scope: none
ace_mode: text
Filterscript:
type: programming
group: RenderScript