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 <james...@debian.org>
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