Stephen Talley wrote:

> Using vim 7.2, spell checking is not limited to comments and strings in .java
> source files as it should be.  Instead, all text in the file is spell checked.
> 
> The problem starts with $VIM/vim72/syntax/java.vim, which includes html.vim:
> 
>     syntax include @javaHtml <sfile>:p:h/html.vim
> 
> In $VIM/vim72/syntax/html.vim, syntax is turned on for the toplevel:
> 
>     syntax spell toplevel
> 
> That may make sense in an HTML file, but not in Java.  One solution is to 
> amend
> java.vim:
> 
>     syntax include @javaHtml <sfile>:p:h/html.vim
>     syntax spell default

This is already included in the current version of the file:
ftp://ftp.vim.org/pub/vim/runtime/syntax/java.vim

> Whether that is the correct solution, I'll leave to the experts.  Note
> too this likely affects other syntax files that include html.vim:
> 
>     papp.vim
>     java.vim
>     groovy.vim
>     spyce.vim

I'll add the line to the other files.  That's a better guess than not
doing anything.

-- 
Mushrooms always grow in damp places and so they look like umbrellas.

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\        download, build and distribute -- http://www.A-A-P.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

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

Reply via email to