Skip to content

Commit

Permalink
Revert "Revert "Add Pod 6 to the languages.yml (#4083)" (#4148)"
Browse files Browse the repository at this point in the history
This reverts commit e9ad913.
  • Loading branch information
lildude committed May 30, 2018
1 parent e9ad913 commit a3cd90d
Show file tree
Hide file tree
Showing 5 changed files with 841 additions and 0 deletions.
10 changes: 10 additions & 0 deletions lib/linguist/heuristics.rb
Original file line number Diff line number Diff line change
Expand Up @@ -380,6 +380,16 @@ def call(data)
end
end

disambiguate ".pod" do |data|
if /^\s*\/\* XPM \*\//.match(data)
Language["XPM"]
elsif /^[\s&&[^\n]]*=(comment|begin pod|begin para|item\d+)/.match(data)
Language["Pod 6"]
else
Language["Pod"]
end
end

disambiguate ".pro" do |data|
if /^[^\[#]+:-/.match(data)
Language["Prolog"]
Expand Down
10 changes: 10 additions & 0 deletions lib/linguist/languages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3494,6 +3494,16 @@ Pod:
- perl
tm_scope: none
language_id: 288
Pod 6:
type: prose
ace_mode: perl
tm_scope: source.perl6fe
wrap: true
extensions:
- ".pod"
interpreters:
- perl6
language_id: 155357471
PogoScript:
type: programming
color: "#d80074"
Expand Down
Loading

0 comments on commit a3cd90d

Please sign in to comment.