Hi all

This is a small fix (I believe) for the java syntax file.

Currently, qualified annotation names are hightlighted as

   [EMAIL PROTECTED](bar=baz)

but this patch will show

   [EMAIL PROTECTED](bar=baz)

(see attached patch file)

http://java.sun.com/docs/books/jls/third_edition/html/interfaces.html#9.7
http://java.sun.com/docs/books/jls/third_edition/html/names.html#6.5
http://java.sun.com/docs/books/jls/third_edition/html/lexical.html#3.8

Later
Charlie

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Index: runtime/syntax/java.vim
===================================================================
--- runtime/syntax/java.vim	(revision 1273)
+++ runtime/syntax/java.vim	(working copy)
@@ -58,7 +58,7 @@
 syn keyword javaClassDecl	enum
 syn match   javaClassDecl	"^class\>"
 syn match   javaClassDecl	"[^.]\s*\<class\>"ms=s+1
-syn match   javaAnnotation      "@[_$a-zA-Z][_$a-zA-Z0-9_]*\>"
+syn match   javaAnnotation      "@\([_$a-zA-Z][_$a-zA-Z0-9]*\.\)*[_$a-zA-Z][_$a-zA-Z0-9]*\>"
 syn match   javaClassDecl       "@interface\>"
 syn keyword javaBranch		break continue nextgroup=javaUserLabelRef skipwhite
 syn match   javaUserLabelRef	"\k\+" contained

Raspunde prin e-mail lui