Until we see the full semantic support,
This simple patch improves the coloring of generic declarations:

diff -p font-lock.el.~1~ font-lock.el
*** font-lock.el.~1~    Fri Aug 30 05:35:14 2002
--- font-lock.el        Sun May  8 12:19:19 2005
*************** See also `java-font-lock-extra-types'.")
*** 2941,2947 ****
      ;;
      ;; Fontify random types immediately followed by an item or items.
      `(eval .
!       (list (concat "\\<\\(" ,java-type-names "\\)\\>"
                    "\\([ \t]*\\[[ \t]*\\]\\)*"
                    "\\([ \t]*\\sw\\)")
            ;; Fontify each declaration item.
--- 2941,2947 ----
      ;;
      ;; Fontify random types immediately followed by an item or items.
      `(eval .
!       (list (concat "\\<\\(" ,java-type-names "\\(?:\\(?:<.*>\\)
\\|\\>\\)" "\\)"
                    "\\([ \t]*\\[[ \t]*\\]\\)*"
                    "\\([ \t]*\\sw\\)")
            ;; Fontify each declaration item.


Reply via email to