mirror of
https://github.com/KevinMidboe/linguist.git
synced 2025-10-29 17:50:22 +00:00
Adding Charity and heuristic for xBase .ch files
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user