Skip to content

Commit

Permalink
Merge pull request #229 from dfa1/java10-support
Browse files Browse the repository at this point in the history
java: support for special type 'var'
  • Loading branch information
korny committed Feb 23, 2019
2 parents baf2b03 + acf422a commit ca961f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/coderay/scanners/java.rb
Expand Up @@ -20,7 +20,7 @@ class Java < Scanner
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
Expand Down

0 comments on commit ca961f8

Please sign in to comment.