summaryrefslogtreecommitdiff
path: root/lib/coderay/helpers
diff options
context:
space:
mode:
authormurphy <murphy@rubychan.de>2008-10-20 14:18:18 +0000
committermurphy <murphy@rubychan.de>2008-10-20 14:18:18 +0000
commitceed015b2d5a237a6f3dfc0f2272f13c9f758771 (patch)
treec52ff27205bbefaebf5e8f67960244cd921ece01 /lib/coderay/helpers
parent23e5605488f613bd864671a322562ecfcb2d945d (diff)
downloadcoderay-ceed015b2d5a237a6f3dfc0f2272f13c9f758771.tar.gz
New: *YAML* (#53). Preparing for version 0.8.1.
* Based on the YAML scanner from Jamis Buck's Syntax lib. * Some YAML examples from Ruby gems. * Doesn't handle string yet; alpha state. More changes: * coderay_suite: new parameter "fast" makes testing faster (for development). * Changed the title of HTML page output (Page Encoder). * FileType: Added new file types. * cYcnus style: simplified some token group styles. * Cleanup in CSS and HTML Scanners.
Diffstat (limited to 'lib/coderay/helpers')
-rw-r--r--lib/coderay/helpers/file_type.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/coderay/helpers/file_type.rb b/lib/coderay/helpers/file_type.rb
index e955b9d..fbc95ec 100644
--- a/lib/coderay/helpers/file_type.rb
+++ b/lib/coderay/helpers/file_type.rb
@@ -88,7 +88,12 @@ module FileType
'cpp' => :c,
'c' => :c,
'h' => :c,
+ 'java' => :java,
'js' => :java_script,
+ 'json' => :json,
+ 'diff' => :diff,
+ 'patch' => :diff,
+ 'css' => :css,
'xml' => :xml,
'htm' => :html,
'html' => :html,