summaryrefslogtreecommitdiff
path: root/lib/coderay/scanners/_map.rb
diff options
context:
space:
mode:
authormurphy <murphy@rubychan.de>2009-10-19 16:52:59 +0000
committermurphy <murphy@rubychan.de>2009-10-19 16:52:59 +0000
commita6f93eb4304a062af43083a75d525acc1af9883d (patch)
tree624996688e5b983a38ba08f9ea05a07017d0e432 /lib/coderay/scanners/_map.rb
parent4f67b22339ea7025dc4536a7e369f60755103acc (diff)
downloadcoderay-a6f93eb4304a062af43083a75d525acc1af9883d.tar.gz
New Scanner: *C++* (#76)!
There's a problem with the ternary operator (?:) and labels which needs to be fixed in C, C++ and PHP scanners. I'll get to that soon.
Diffstat (limited to 'lib/coderay/scanners/_map.rb')
-rw-r--r--lib/coderay/scanners/_map.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/coderay/scanners/_map.rb b/lib/coderay/scanners/_map.rb
index 9f08d7d..01078c1 100644
--- a/lib/coderay/scanners/_map.rb
+++ b/lib/coderay/scanners/_map.rb
@@ -2,7 +2,9 @@ module CodeRay
module Scanners
map \
- :cpp => :c,
+ :h => :c,
+ :cplusplus => :cpp,
+ :'c++' => :cpp,
:ecma => :java_script,
:ecmascript => :java_script,
:ecma_script => :java_script,