diff options
author | murphy <murphy@rubychan.de> | 2009-10-20 11:12:26 +0000 |
---|---|---|
committer | murphy <murphy@rubychan.de> | 2009-10-20 11:12:26 +0000 |
commit | 9f6e54e92820754d4f05e7d6ef556c11c5351411 (patch) | |
tree | 3a612819bb121418f05fae076e7640228c36824f /lib/coderay/scanners/cpp.rb | |
parent | a8163c39206fd11ef30ef8efb2c73a6f6a97e424 (diff) | |
download | coderay-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.rb | 2 |
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) |