summaryrefslogtreecommitdiff
path: root/lib/coderay
diff options
context:
space:
mode:
authormurphy <murphy@rubychan.de>2009-02-20 17:37:37 +0000
committermurphy <murphy@rubychan.de>2009-02-20 17:37:37 +0000
commitd783fd52f706a5946e1184b9d6851c6aaf07ef58 (patch)
tree4619ced0962a993bdf5b08bb0fb2199a08d412e8 /lib/coderay
parentdf8bccf987e636d442e43f8c704d750f6519bd3f (diff)
downloadcoderay-d783fd52f706a5946e1184b9d6851c6aaf07ef58.tar.gz
Java scanner highlights interface declarations as :class.
Diffstat (limited to 'lib/coderay')
-rw-r--r--lib/coderay/scanners/java.rb2
1 files changed, 1 insertions, 1 deletions
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)