Skip to content

Commit

Permalink
fix: improve openedge abl langage
Browse files Browse the repository at this point in the history
  • Loading branch information
clement-brodu committed Nov 23, 2022
1 parent a4198a8 commit a8182a9
Show file tree
Hide file tree
Showing 5 changed files with 716 additions and 379 deletions.
9 changes: 9 additions & 0 deletions lib/rouge/guessers/disambiguation.rb
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ def match?(filename)

disambiguate '*.cls' do
next TeX if matches?(/\A\s*(?:\\|%)/)
next OpenEdge if matches?(/(no\-undo|BLOCK\-LEVEL|ROUTINE\-LEVEL|&ANALYZE\-SUSPEND)/i)
next Apex
end

Expand All @@ -138,6 +139,14 @@ def match?(filename)

Puppet
end

disambiguate '*.p' do
next Prolog if contains?(':-')
next Prolog if matches?(/\A\w+(\(\w+\,\s*\w+\))*\./)
next OpenEdge
end


end
end
end
Loading

0 comments on commit a8182a9

Please sign in to comment.