8000 Merge pull request #229 from dfa1/java10-support · rubychan/coderay@ca961f8 · GitHub
[go: up one dir, main page]

Skip to content

Commit ca961f8

Browse files
authored
Merge pull request #229 from dfa1/java10-support
java: support for special type 'var'
2 parents baf2b03 + acf422a commit ca961f8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/coderay/scanners/java.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class Java < Scanner
2020
MAGIC_VARIABLES = %w[ this super ] # :nodoc:
2121
TYPES = %w[
2222
boolean byte char class double enum float int interface long
23-
short void
23+
short void var
2424
] << '[]' # :nodoc: because int[] should be highlighted as a type
2525
DIRECTIVES = %w[
2626
abstract extends final implements native private protected public

0 commit comments

Comments
 (0)
0