From d783fd52f706a5946e1184b9d6851c6aaf07ef58 Mon Sep 17 00:00:00 2001 From: murphy Date: Fri, 20 Feb 2009 17:37:37 +0000 Subject: Java scanner highlights interface declarations as :class. --- lib/coderay/scanners/java.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/coderay/scanners/java.rb') diff --git a/lib/coderay/scanners/java.rb b/lib/coderay/scanners/java.rb index 8ee35c8..71ad31a 100644 --- a/lib/coderay/scanners/java.rb +++ b/lib/coderay/scanners/java.rb @@ -76,7 +76,7 @@ module Scanners class_name_follows = false else import_clause = true if match == 'import' - class_name_follows = true if match == 'class' + class_name_follows = true if match == 'class' || match == 'interface' end elsif scan(/ \.(?!\d) | [,?:(\[)\]}] | -- | \+\+ | && | \|\| | \*\*=? | [-+*\/%^~&|<>=!]=? | <<>>?=? /x) -- cgit v1.2.1