• R/O
  • SSH

vim: Commit

Mirror of the Vim source from https://github.com/vim/vim


Commit MetaInfo

Revisiónc50c82c5e230a9ef1cb570be0a57d3dc9e295993 (tree)
Tiempo2005-04-21 04:48:33
Autorvimboss
Commitervimboss

Log Message

updated for version 7.0069

Cambiar Resumen

Diferencia incremental

diff -r 62a331864307 -r c50c82c5e230 runtime/doc/todo.txt
--- a/runtime/doc/todo.txt Wed Apr 20 19:45:58 2005 +0000
+++ b/runtime/doc/todo.txt Wed Apr 20 19:48:33 2005 +0000
@@ -1,4 +1,4 @@
1-*todo.txt* For Vim version 7.0aa. Last change: 2005 Apr 19
1+*todo.txt* For Vim version 7.0aa. Last change: 2005 Apr 20
22
33
44 VIM REFERENCE MANUAL by Bram Moolenaar
@@ -103,29 +103,26 @@
103103 - Add SPELLCHECKER, with support for many languages.
104104 - Use "engspchk" from Charles Campbell for ideas.
105105 - Spell checking code todo's:
106- - Can have prefixes with addstring and suffixes with leadstring. Use
107- separate basic word for this, like for different caps?
108106 - Verify French spell checking works efficiently.
109- - use BWF_ADDS and BWF_ADDSM for more than 256, only one byte for count.
110107 - Implement user and project word lists. Commands to add words and to
111108 mark words as wrong.
112109 - Case folding only works when locale is set properly.
113110 E.g., when C locale is active then 'enc' is "latin1" but Ångström
114111 isn't seen as a ONECAP.
115112 Use our own character tables for encodings used in spell files?
116- Use iswupper() if possible?
113+ Use iswupper() if possible? Same locale/'encoding' problems.
117114 Put the character tables in the .aff file?
118115 - Implement = flag in .dic: KEEPCASE for lower case word.
119116 's morgens/= does not match 'S morgens
120117 - Implement compound words?
121- - remove fw_prefix and fw_suffix, use fw_len (word length) and put
122- prefixes and suffixes right after it.
123118 - Make "en-rare" spell file.
124119 Convention: use en_US (language_region) and en-rare (language-field)
125120 Add hl groups to 'spelllang'?
126121 :set spelllang=en_us,en-rare/SpellRare,en-math/SpellMath
127- - Polish: Anio and Hanio are wrong words, even though Myspell allows
128- them. Problem with not ignoring case in conditions.
122+ - How about making suggestions? Use an external program like aspell?
123+ Or include the myspell suggestion code in Vim?
124+ - Some word lists are inefficient. Remove affixes from a word when it
125+ results in another basic word.
129126 - References MySpell library (in OpenOffice.org).
130127 http://spellchecker.mozdev.org/source.html
131128 http://whiteboard.openoffice.org/source/browse/whiteboard/lingucomponent/source/spellcheck/myspell/
@@ -138,17 +135,12 @@
138135 add word to private dict: wrong and OK (in popup menu for evim)
139136 :spell good <word> zg
140137 :spell wrong <word> zw
141- [s move to previous spell error [S also rare word
142- ]s move to next spell error ]S also rare word
143- (only "]s" is currently implemented)
144- Make this work like displaying, check @Spell in syntax.
145- Support a count.
146138 - Update option window for 'spell' and 'spelllang'.
147- - Use an external program like aspell for suggestions to correct the
148- spelling? Or include the myspell suggestion code in Vim?
149139 - Distribution: Need wordlists for many languages; "language pack"
140+ Put them on the ftp site, ready to download. Include README for
141+ copyrights.
150142 - Work together with OpenOffice.org to update the wordlists. (Adri
151- Verhoef, Aad Nales)
143+ Verhoef, Aad Nales) Setup vim-spell maillist?
152144 - Support for approximate-regexps will help with finding similar words
153145 (agrep http://www.tgries.de/agrep/).
154146 - Charles Campbell asks for method to add "contained" groups to
diff -r 62a331864307 -r c50c82c5e230 src/eval.c
--- a/src/eval.c Wed Apr 20 19:45:58 2005 +0000
+++ b/src/eval.c Wed Apr 20 19:48:33 2005 +0000
@@ -12996,7 +12996,7 @@
1299612996 }
1299712997
1299812998 /*
12999- * "synID(line, col, trans)" function
12999+ * "synID(lnum, col, trans)" function
1300013000 */
1300113001 /*ARGSUSED*/
1300213002 static void
@@ -13006,17 +13006,17 @@
1300613006 {
1300713007 int id = 0;
1300813008 #ifdef FEAT_SYN_HL
13009- long line;
13009+ long lnum;
1301013010 long col;
1301113011 int trans;
1301213012
13013- line = get_tv_lnum(argvars);
13013+ lnum = get_tv_lnum(argvars);
1301413014 col = get_tv_number(&argvars[1]) - 1;
1301513015 trans = get_tv_number(&argvars[2]);
1301613016
13017- if (line >= 1 && line <= curbuf->b_ml.ml_line_count
13018- && col >= 0 && col < (long)STRLEN(ml_get(line)))
13019- id = syn_get_id(line, col, trans);
13017+ if (lnum >= 1 && lnum <= curbuf->b_ml.ml_line_count
13018+ && col >= 0 && col < (long)STRLEN(ml_get(lnum)))
13019+ id = syn_get_id(lnum, (colnr_T)col, trans, NULL);
1302013020 #endif
1302113021
1302213022 rettv->vval.v_number = id;
Show on old repository browser