mirror of
https://github.com/KevinMidboe/linguist.git
synced 2025-10-29 17:50:22 +00:00
Add support for OpenEdge ABL language
This commit is contained in:
@@ -417,6 +417,17 @@ module Linguist
|
||||
end
|
||||
end
|
||||
|
||||
# Internal: Guess language of .cls files
|
||||
#
|
||||
# Returns a Language.
|
||||
def guess_cls_language
|
||||
if lines.grep(/^(%|\\)/).any?
|
||||
Language['TeX']
|
||||
else
|
||||
Language['OpenEdge ABL']
|
||||
end
|
||||
end
|
||||
|
||||
# Internal: Guess language of header files (.h).
|
||||
#
|
||||
# Returns a Language.
|
||||
|
||||
@@ -740,6 +740,19 @@ OpenCL:
|
||||
extensions:
|
||||
- .cl
|
||||
|
||||
OpenEdge ABL:
|
||||
type: programming
|
||||
aliases:
|
||||
- progress
|
||||
- openedge
|
||||
- abl
|
||||
primary_extension: .p
|
||||
overrides:
|
||||
- .cls
|
||||
extensions:
|
||||
- .cls
|
||||
- .p
|
||||
|
||||
PHP:
|
||||
type: programming
|
||||
extensions:
|
||||
|
||||
Reference in New Issue
Block a user