Create association with OpenEdge .w files (#3648)

* Update heuristics.rb

* Update languages.yml

* Create consmov.w

* Create menu.w

* Switch out large samples for smaller ones

* Relax regex
This commit is contained in:
Maickel Hubner
2017-10-14 14:12:16 -03:00
committed by Colin Seymour
parent 44048c9ba8
commit 0af9a35ff1
3 changed files with 240 additions and 0 deletions

View File

@@ -499,5 +499,14 @@ module Linguist
Language["XML"]
end
end
disambiguate ".w" do |data|
if (data.include?("&ANALYZE-SUSPEND _UIB-CODE-BLOCK _CUSTOM _DEFINITIONS"))
Language["OpenEdge ABL"]
elsif /^@(<|\w+\.)/.match(data)
Language["CWeb"]
end
end
end
end

View File

@@ -3069,6 +3069,7 @@ OpenEdge ABL:
extensions:
- ".p"
- ".cls"
- ".w"
tm_scope: source.abl
ace_mode: text
language_id: 264