summaryrefslogtreecommitdiff
path: root/lib/coderay/scanners/cpp.rb
diff options
context:
space:
mode:
authormurphy <murphy@rubychan.de>2009-10-20 11:12:26 +0000
committermurphy <murphy@rubychan.de>2009-10-20 11:12:26 +0000
commit9f6e54e92820754d4f05e7d6ef556c11c5351411 (patch)
tree3a612819bb121418f05fae076e7640228c36824f /lib/coderay/scanners/cpp.rb
parenta8163c39206fd11ef30ef8efb2c73a6f6a97e424 (diff)
downloadcoderay-9f6e54e92820754d4f05e7d6ef556c11c5351411.tar.gz
Updated PHP scanner (#36)
* highlighting of class and function definitions * improved HTML/PHP detection * heredocs (simple) * a new test for classes
Diffstat (limited to 'lib/coderay/scanners/cpp.rb')
-rw-r--r--lib/coderay/scanners/cpp.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/coderay/scanners/cpp.rb b/lib/coderay/scanners/cpp.rb
index 7ba9ec0..0b92ef9 100644
--- a/lib/coderay/scanners/cpp.rb
+++ b/lib/coderay/scanners/cpp.rb
@@ -96,7 +96,7 @@ module Scanners
kind = :delimiter
elsif scan(/#\s*(\w*)/)
- kind = :preprocessor # FIXME multiline preprocs
+ kind = :preprocessor
state = :include_expected if self[1] == 'include'
elsif scan(/ L?' (?: [^\'\n\\] | \\ #{ESCAPE} )? '? /ox)