summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorKornelius Kalnbach <murphy@rubychan.de>2019-02-23 15:33:07 +0100
committerKornelius Kalnbach <murphy@rubychan.de>2019-02-23 15:33:07 +0100
commit5070b636a0befc9cd84fd9c22b33d5c6fa10110a (patch)
tree64e35cde3309a198e157ae70257a3ad259403d60 /lib
parentcd7f90f4f7360c231b24e06193ea3138de5a7b84 (diff)
parentca961f89f6224a923d9f5a5357d63c1e0160a4b3 (diff)
downloadcoderay-5070b636a0befc9cd84fd9c22b33d5c6fa10110a.tar.gz
Merge branch 'master' of github.com:rubychan/coderay
Diffstat (limited to 'lib')
-rw-r--r--lib/coderay/encoders/html/output.rb2
-rw-r--r--lib/coderay/scanners/java.rb2
2 files changed, 1 insertions, 3 deletions
diff --git a/lib/coderay/encoders/html/output.rb b/lib/coderay/encoders/html/output.rb
index de6f6ea..ee87fea 100644
--- a/lib/coderay/encoders/html/output.rb
+++ b/lib/coderay/encoders/html/output.rb
@@ -76,8 +76,6 @@ module Encoders
apply_title! title
end
self
- when nil
- return self
else
raise "Unknown value %p for :wrap" % element
end
diff --git a/lib/coderay/scanners/java.rb b/lib/coderay/scanners/java.rb
index 982a796..a490ec6 100644
--- a/lib/coderay/scanners/java.rb
+++ b/lib/coderay/scanners/java.rb
@@ -20,7 +20,7 @@ module Scanners
MAGIC_VARIABLES = %w[ this super ] # :nodoc:
TYPES = %w[
boolean byte char class double enum float int interface long
- short void
+ short void var
] << '[]' # :nodoc: because int[] should be highlighted as a type
DIRECTIVES = %w[
abstract extends final implements native private protected public