mirror of
https://github.com/KevinMidboe/linguist.git
synced 2025-12-07 20:08:48 +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
|
||||
|
||||
@@ -501,6 +501,13 @@ Chapel:
|
||||
- .chpl
|
||||
ace_mode: text
|
||||
|
||||
Charity:
|
||||
type: programming
|
||||
extensions:
|
||||
- .ch
|
||||
tm_scope: none
|
||||
ace_mode: text
|
||||
|
||||
ChucK:
|
||||
type: programming
|
||||
extensions:
|
||||
|
||||
Reference in New Issue
Block a user