Changeset 2349 in kBuild
- Timestamp:
- May 17, 2009 11:13:35 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/VSlickMacros/kdev.e
r2243 r2349 185 185 { 186 186 /* multiline */ 187 #if __VERSION__>=14.0 188 _str aComments[]; 189 GetComments(aComments, "mlcomment", sLexer) 190 for (i = 0; i < aComments._length(); i++) 191 if (!pos("documentation", aComments[i]) > 0) 192 { 193 sLine = aComments[i]; 194 break; 195 } 196 if (sLine != '') 197 #else 187 198 rc = _ini_get_value(slick_path_search("user.vlx"), sLexer, 'mlcomment', sLine); 188 199 if (rc) 189 200 rc = _ini_get_value(slick_path_search("vslick.vlx"), sLexer, 'mlcomment', sLine); 190 201 if (!rc) 202 #endif 191 203 { 192 204 sLeft = strip(word(sLine, 1)); … … 197 209 198 210 /* failed, try single line. */ 211 #if __VERSION__>=14.0 212 GetComments(aComments, "linecomment", sLexer) 213 for (i = 0; i < aComments._length(); i++) 214 if (!pos("documentation", aComments[i]) > 0) 215 { 216 sLine = aComments[i]; 217 break; 218 } 219 if (sLine != '') 220 #else 199 221 rc = _ini_get_value(slick_path_search("user.vlx"), sLexer, 'linecomment', sLine); 200 222 if (rc) 201 223 rc = _ini_get_value(slick_path_search("vslick.vlx"), sLexer, 'linecomment', sLine); 202 224 if (!rc) 225 #endif 203 226 { 204 227 sLeft = strip(word(sLine, 1)); … … 1172 1195 int iCursorLine; 1173 1196 int iPadd = k_alignup(11, p_SyntaxIndent); 1197 1174 1198 /* look for parameters */ 1175 1199 boolean fFoundFn = !k_func_goto_nearest_function(); … … 1196 1220 { 1197 1221 _str sName, sType, sDefault; 1198 if ( !k_func_enumparams(sArgs, i, sType, sName, sDefault)1222 if ( !k_func_enumparams(sArgs, i, sType, sName, sDefault) 1199 1223 && iPadd2 < length(sName)) 1200 1224 iPadd2 = length(sName); 1201 1225 } 1202 1226 iPadd2 = k_alignup((iPadd + iPadd2), p_SyntaxIndent); 1227 if (iPadd2 < 28) 1228 iPadd2 = k_alignup(28, p_SyntaxIndent); 1203 1229 1204 1230 /* … … 1210 1236 if (!k_func_enumparams(sArgs, i, sType, sName, sDefault)) 1211 1237 { 1212 _str sStr3 = ' ';1238 _str sStr3 = '.'; 1213 1239 if (sDefault != "") 1214 1240 sStr3 = '(default='sDefault')';
Note:
See TracChangeset
for help on using the changeset viewer.