Mirror of the Vim source from https://github.com/vim/vim
Revisión | c50c82c5e230a9ef1cb570be0a57d3dc9e295993 (tree) |
---|---|
Tiempo | 2005-04-21 04:48:33 |
Autor | vimboss |
Commiter | vimboss |
updated for version 7.0069
@@ -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 | |
2 | 2 | |
3 | 3 | |
4 | 4 | VIM REFERENCE MANUAL by Bram Moolenaar |
@@ -103,29 +103,26 @@ | ||
103 | 103 | - Add SPELLCHECKER, with support for many languages. |
104 | 104 | - Use "engspchk" from Charles Campbell for ideas. |
105 | 105 | - 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? | |
108 | 106 | - Verify French spell checking works efficiently. |
109 | - - use BWF_ADDS and BWF_ADDSM for more than 256, only one byte for count. | |
110 | 107 | - Implement user and project word lists. Commands to add words and to |
111 | 108 | mark words as wrong. |
112 | 109 | - Case folding only works when locale is set properly. |
113 | 110 | E.g., when C locale is active then 'enc' is "latin1" but Ångström |
114 | 111 | isn't seen as a ONECAP. |
115 | 112 | 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. | |
117 | 114 | Put the character tables in the .aff file? |
118 | 115 | - Implement = flag in .dic: KEEPCASE for lower case word. |
119 | 116 | 's morgens/= does not match 'S morgens |
120 | 117 | - Implement compound words? |
121 | - - remove fw_prefix and fw_suffix, use fw_len (word length) and put | |
122 | - prefixes and suffixes right after it. | |
123 | 118 | - Make "en-rare" spell file. |
124 | 119 | Convention: use en_US (language_region) and en-rare (language-field) |
125 | 120 | Add hl groups to 'spelllang'? |
126 | 121 | :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. | |
129 | 126 | - References MySpell library (in OpenOffice.org). |
130 | 127 | http://spellchecker.mozdev.org/source.html |
131 | 128 | http://whiteboard.openoffice.org/source/browse/whiteboard/lingucomponent/source/spellcheck/myspell/ |
@@ -138,17 +135,12 @@ | ||
138 | 135 | add word to private dict: wrong and OK (in popup menu for evim) |
139 | 136 | :spell good <word> zg |
140 | 137 | :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. | |
146 | 138 | - 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? | |
149 | 139 | - Distribution: Need wordlists for many languages; "language pack" |
140 | + Put them on the ftp site, ready to download. Include README for | |
141 | + copyrights. | |
150 | 142 | - Work together with OpenOffice.org to update the wordlists. (Adri |
151 | - Verhoef, Aad Nales) | |
143 | + Verhoef, Aad Nales) Setup vim-spell maillist? | |
152 | 144 | - Support for approximate-regexps will help with finding similar words |
153 | 145 | (agrep http://www.tgries.de/agrep/). |
154 | 146 | - Charles Campbell asks for method to add "contained" groups to |
@@ -12996,7 +12996,7 @@ | ||
12996 | 12996 | } |
12997 | 12997 | |
12998 | 12998 | /* |
12999 | - * "synID(line, col, trans)" function | |
12999 | + * "synID(lnum, col, trans)" function | |
13000 | 13000 | */ |
13001 | 13001 | /*ARGSUSED*/ |
13002 | 13002 | static void |
@@ -13006,17 +13006,17 @@ | ||
13006 | 13006 | { |
13007 | 13007 | int id = 0; |
13008 | 13008 | #ifdef FEAT_SYN_HL |
13009 | - long line; | |
13009 | + long lnum; | |
13010 | 13010 | long col; |
13011 | 13011 | int trans; |
13012 | 13012 | |
13013 | - line = get_tv_lnum(argvars); | |
13013 | + lnum = get_tv_lnum(argvars); | |
13014 | 13014 | col = get_tv_number(&argvars[1]) - 1; |
13015 | 13015 | trans = get_tv_number(&argvars[2]); |
13016 | 13016 | |
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); | |
13020 | 13020 | #endif |
13021 | 13021 | |
13022 | 13022 | rettv->vval.v_number = id; |