From 9f6e54e92820754d4f05e7d6ef556c11c5351411 Mon Sep 17 00:00:00 2001 From: murphy Date: Tue, 20 Oct 2009 11:12:26 +0000 Subject: Updated PHP scanner (#36) * highlighting of class and function definitions * improved HTML/PHP detection * heredocs (simple) * a new test for classes --- lib/coderay/scanners/cpp.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/coderay/scanners/cpp.rb') 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) -- cgit v1.2.1