Hello Simon,

I had already once sent you this patch; I'm trying again as we on vim_dev are
currently attempting to establish the ownership and a new maintenance model of
Vim runtime files. If you're still willing to maintain this file (or wish to
relinquish it), please reply.

-- regards, ingo

-------- Original Message --------
Subject: [PATCH] syntax/jproperties.vim spell checking
Date: Wed, 16 Nov 2011 16:14:59 +0100
From: Ingo Karkat <[email protected]>
To: Simon Baldwin <[email protected]>

Hello Simon,

A long time ago, you provided the Vim syntax highlighting file for Java
properties files. I hope you still actively use Vim and maintain this syntax
script, because I have a small enhancement for it:

With the spell check feature of Vim 7, the property identifiers are
spell-checked like everything else, which results in many spurious spell errors.
The patch below against syntax/jproperties.vim from 26th Mar 2000 turns off
spell checking for "jpropertiesIdentifier", so that only comments and the
properties strings are spell checked. I hope you accept this and help get this
into the Vim distribution by sending it to Bram.

-- regards, ingo

--- syntax/jproperties.vim.orig 2011-11-16 15:45:47.431470600 +0100
+++ syntax/jproperties.vim      2011-11-16 15:46:05.103237600 +0100
@@ -66,7 +66,7 @@

        " an identifier is anything not a space character, pretty much; it's
        " followed by = or :, or space or tab.  Or end-of-line.
-       syn match   jpropertiesIdentifier       "[^=:[:space:]]*" contained
nextgroup=jpropertiesDelimiter
+       syn match   jpropertiesIdentifier       "[^=:[:space:]]*" contained
nextgroup=jpropertiesDelimiter contains=@NoSpell

        " treat the delimiter specially to get colours right
        syn match   jpropertiesDelimiter        "\s*[=:[:space:]]\s*" contained
nextgroup=jpropertiesString
@@ -81,7 +81,7 @@

        " an identifier is anything not a space character, pretty much; it's
        " always followed by = or :, and we find it in an assignment
-       syn match   jpropertiesIdentifier       "[^=:[:space:]]\+" contained
nextgroup=jpropertiesDelimiter
+       syn match   jpropertiesIdentifier       "[^=:[:space:]]\+" contained
nextgroup=jpropertiesDelimiter contains=@NoSpell

        " treat the delimiter specially to get colours right; this time the
        " delimiter must contain = or :

-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

Raspunde prin e-mail lui