]> granicus.if.org Git - vim/commitdiff
updated for version 7.0069
authorBram Moolenaar <Bram@vim.org>
Wed, 20 Apr 2005 19:45:58 +0000 (19:45 +0000)
committerBram Moolenaar <Bram@vim.org>
Wed, 20 Apr 2005 19:45:58 +0000 (19:45 +0000)
runtime/doc/spell.txt
runtime/spell/en.latin1.spl
src/ex_cmds2.c
src/syntax.c

index a9cc7e1ed4eaaef8b84b029bc2300f7d13dd9b62..0f359a4c080e47f5feaaaf5db85935f59c1feb67 100644 (file)
@@ -1,4 +1,4 @@
-*spell.txt*    For Vim version 7.0aa.  Last change: 2005 Apr 19
+*spell.txt*    For Vim version 7.0aa.  Last change: 2005 Apr 20
 
 
                  VIM REFERENCE MANUAL    by Bram Moolenaar
@@ -35,12 +35,20 @@ To search for the next misspelled word:
 
                                                        *]s* *E756*
 ]s                     Move to next misspelled word after the cursor.
-                       NOTE: doesn't obey syntax highlighting yet, thus
-                       will stop at more places than what is highlighted.
+                       A count before the command can be used to repeat.
+                       This uses the @Spell and @NoSpell clusters from syntax
+                       highlighting, see |spell-syntax|.
 
                                                        *[s*
-[s                     Move to next misspelled word before the cursor.
-                       DOESN'T WORK YET!
+[s                     Like "]s" but search backwards, find the misspelled
+                       word before the cursor.
+
+                                                       *]S*
+]S                     Like "]s" but only stop at bad words, not at rare
+                       words or words for another region.
+
+                                                       *[S*
+[S                     Like "]S" but search backwards.
 
 
 PERFORMANCE
@@ -109,7 +117,7 @@ include characters like '-' in 'iskeyword'.  The word characters do depend on
 A word that starts with a digit is always ignored.
 
 
-SYNTAX HIGHLIGHTING
+SYNTAX HIGHLIGHTING                                    *spell-syntax*
 
 Files that use syntax highlighting can specify where spell checking should be
 done:
index 4e6be5cef517a06a1087857df55323fe85ff1e52..d9640c73bdd0f9c8a40f8496ccd6abca400384b7 100644 (file)
Binary files a/runtime/spell/en.latin1.spl and b/runtime/spell/en.latin1.spl differ
index e4a6a2ac7bce53d6c4aa5fbf5d597ce14f1c69cd..4dc0f0cc1529f044b03f6e38ab82efbd049a5e58 100644 (file)
@@ -4318,7 +4318,7 @@ hardcopy_line(psettings, page_line, ppos)
         */
        if (psettings->do_syntax)
        {
-           id = syn_get_id(ppos->file_line, (long)col, 1);
+           id = syn_get_id(ppos->file_line, col, 1, NULL);
            if (id > 0)
                id = syn_get_final_id(id);
            else
index a6741cf17ee2efeb4b65349507d38cd4e0981b15..947ed19f56850e8349783b939103cc19981283e8 100644 (file)
@@ -5929,28 +5929,27 @@ get_syntax_name(xp, idx)
 
 #endif /* FEAT_CMDL_COMPL */
 
-#if defined(FEAT_EVAL) || defined(FEAT_PRINTER) || defined(PROTO)
 /*
  * Function called for expression evaluation: get syntax ID at file position.
  */
     int
-syn_get_id(lnum, col, trans)
+syn_get_id(lnum, col, trans, spellp)
     long       lnum;
-    long       col;
+    colnr_T    col;
     int                trans;      /* remove transparancy */
+    int                *spellp;    /* return: can do spell checking */
 {
     /* When the position is not after the current position and in the same
      * line of the same buffer, need to restart parsing. */
     if (curwin->w_buffer != syn_buf
            || lnum != current_lnum
-           || col < (long)current_col)
+           || col < current_col)
        syntax_start(curwin, lnum);
 
-    (void)get_syntax_attr((colnr_T)col, NULL);
+    (void)get_syntax_attr(col, spellp);
 
     return (trans ? current_trans_id : current_id);
 }
-#endif
 
 #if defined(FEAT_FOLDING) || defined(PROTO)
 /*