summaryrefslogtreecommitdiff
path: root/lib/coderay/helpers
diff options
context:
space:
mode:
Diffstat (limited to 'lib/coderay/helpers')
-rw-r--r--lib/coderay/helpers/file_type.rb31
1 files changed, 17 insertions, 14 deletions
diff --git a/lib/coderay/helpers/file_type.rb b/lib/coderay/helpers/file_type.rb
index 3c5979a..7f472d6 100644
--- a/lib/coderay/helpers/file_type.rb
+++ b/lib/coderay/helpers/file_type.rb
@@ -81,30 +81,33 @@ module FileType
end
TypeFromExt = {
- 'rb' => :ruby,
- 'rbw' => :ruby,
- 'rake' => :ruby,
- 'mab' => :ruby,
- 'cpp' => :c,
'c' => :c,
- 'gvy' => :groovy,
+ 'cpp' => :c,
+ 'css' => :css,
+ 'diff' => :diff,
'groovy' => :groovy,
+ 'gvy' => :groovy,
'h' => :c,
+ 'htm' => :html,
+ 'html' => :html,
+ 'html.erb' => :rhtml,
'java' => :java,
'js' => :java_script,
'json' => :json,
- 'diff' => :diff,
+ 'mab' => :ruby,
'patch' => :diff,
- 'css' => :css,
- 'xml' => :xml,
- 'htm' => :html,
- 'html' => :html,
- 'xhtml' => :xhtml,
+ 'py' => :python,
+ 'py3' => :python,
+ 'pyw' => :python,
+ 'rake' => :ruby,
'raydebug' => :debug,
+ 'rb' => :ruby,
+ 'rbw' => :ruby,
'rhtml' => :rhtml,
- 'html.erb' => :rhtml,
- 'ss' => :scheme,
'sch' => :scheme,
+ 'ss' => :scheme,
+ 'xhtml' => :xhtml,
+ 'xml' => :xml,
'yaml' => :yaml,
'yml' => :yaml,
}