Your message dated Sat, 25 Jul 2009 01:10:53 +0200
with message-id <[email protected]>
has caused the report #509123,
regarding /usr/share/vim/vim71/syntax/matlab.vim: Vim check spell of whole code
in matlab files
to be marked as having been forwarded to the upstream software
author(s) Maurizio Tranchero <[email protected]>
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
509123: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=509123
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Maurizio,
Currently when a user has spell check enabled and is editing a matlab
file, everything is spell checked. Attached is a patch which enables
spell checking only for comments and strings.
Thanks,
--
James
GPG Key: 1024D/61326D40 2003-09-02 James Vega <[email protected]>
diff --git a/runtime/syntax/matlab.vim b/runtime/syntax/matlab.vim
index 6cc2812..f5ddfb9 100644
--- a/runtime/syntax/matlab.vim
+++ b/runtime/syntax/matlab.vim
@@ -38,7 +38,7 @@ syn match matlabLineContinuation "\.\{3}"
" String
" MT_ADDON - added 'skip' in order to deal with 'tic' escaping sequence
-syn region matlabString start=+'+ end=+'+ oneline skip=+''+
+syn region matlabString start=+'+ end=+'+ oneline skip=+''+ contai...@spell
" If you don't like tabs
syn match matlabTab "\t"
@@ -57,10 +57,10 @@ syn match matlabTransposeOperator "[])a-zA-Z0-9.]'"lc=1
syn match matlabSemicolon ";"
-syn match matlabComment "%.*$" contains=matlabTodo,matlabTab
+syn match matlabComment "%.*$" contains=matlabTodo,matlabTab,@Spell
" MT_ADDON - correctly highlights words after '...' as comments
-syn match matlabComment "\.\.\..*$" contains=matlabTodo,matlabTab
-syn region matlabMultilineComment start=+%{+ end=+%}+ contains=matlabTodo,matlabTab
+syn match matlabComment "\.\.\..*$" contains=matlabTodo,matlabTab,@Spell
+syn region matlabMultilineComment start=+%{+ end=+%}+ contains=matlabTodo,matlabTab,@Spell
syn keyword matlabOperator break zeros default margin round ones rand
syn keyword matlabOperator ceil floor size clear zeros eye mean std cov
signature.asc
Description: Digital signature
--- End Message ---