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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy