summaryrefslogtreecommitdiff
path: root/lib/coderay/scanners/_map.rb
diff options
context:
space:
mode:
authormurphy <murphy@rubychan.de>2009-04-20 21:19:41 +0000
committermurphy <murphy@rubychan.de>2009-04-20 21:19:41 +0000
commit32701fcf0c5f0e54d7172ceb86e44664aa4bae10 (patch)
tree5185f2c879f0478a89b2dcbc2a0a632ddaf838b9 /lib/coderay/scanners/_map.rb
parentcf0b7a2a80808c06cb51ad2ee8971082d96cd41e (diff)
downloadcoderay-32701fcf0c5f0e54d7172ceb86e44664aa4bae10.tar.gz
New: *PHP and SQL Scanners*
* Both not well tested yet, preview versions. * Some example code for both languages. * PHP scanner original by Stefan Walk. * SQL scanner using code by Keith Pitt and Josh Goebel.
Diffstat (limited to 'lib/coderay/scanners/_map.rb')
-rw-r--r--lib/coderay/scanners/_map.rb12
1 files changed, 8 insertions, 4 deletions
diff --git a/lib/coderay/scanners/_map.rb b/lib/coderay/scanners/_map.rb
index c9ac75f..9f08d7d 100644
--- a/lib/coderay/scanners/_map.rb
+++ b/lib/coderay/scanners/_map.rb
@@ -1,14 +1,18 @@
module CodeRay
module Scanners
- map :cpp => :c,
- :plain => :plaintext,
- :pascal => :delphi,
+ map \
+ :cpp => :c,
+ :ecma => :java_script,
+ :ecmascript => :java_script,
+ :ecma_script => :java_script,
:irb => :ruby,
- :xhtml => :nitro_xhtml,
:javascript => :java_script,
:js => :java_script,
:nitro => :nitro_xhtml,
+ :pascal => :delphi,
+ :plain => :plaintext,
+ :xhtml => :html,
:yml => :yaml
default :plain