Adding Charity and heuristic for xBase .ch files

This commit is contained in:
Arfon Smith
2015-07-21 14:59:47 +01:00
parent aef19d72f9
commit 6b747f7d65
4 changed files with 36 additions and 11 deletions

View File

@@ -333,5 +333,11 @@ module Linguist
Language["GAS"]
end
end
disambiguate "xBase", "Charity" do |data|
if /^\s*#\s*(if|ifdef|ifndef|define|command|xcommand|translate|xtranslate|include|pragma|undef)\b/i.match(data)
Language["xBase"]
end
end
end
end