Changeset 3018 in kBuild
- Timestamp:
- Jan 7, 2017 12:06:39 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SlickEdit/kdev.e
r3015 r3018 191 191 { 192 192 /* multiline */ 193 #if __VERSION__ >= 14.0 193 #if __VERSION__ >= 21.0 194 COMMENT_TYPE aComments[]; 195 GetComments(aComments, "M", sLexer); 196 for (i = 0; i < aComments._length(); i++) 197 if (!aComments[i].isDocumentation) 198 { 199 sLeft = aComments[i].delim1; 200 sRight = aComments[i].delim2; 201 iColumn = aComments[i].startcol; 202 if (sLeft != '' && sRight != '') 203 return true; 204 } 205 #else 206 # if __VERSION__ >= 14.0 194 207 _str aComments[] = null; 195 208 GetComments(aComments, "mlcomment", sLexer); 196 209 for (i = 0; i < aComments._length(); i++) 197 if ( !pos("documentation", aComments[i]) >0)210 if (pos("documentation", aComments[i]) <= 0) 198 211 { 199 212 sLine = aComments[i]; … … 201 214 } 202 215 if (sLine != '') 203 # else216 # else 204 217 rc = _ini_get_value(slick_path_search("user.vlx"), sLexer, 'mlcomment', sLine); 205 218 if (rc) 206 219 rc = _ini_get_value(slick_path_search("vslick.vlx"), sLexer, 'mlcomment', sLine); 207 220 if (!rc) 208 # endif221 # endif 209 222 { 210 223 sLeft = strip(word(sLine, 1)); … … 213 226 return true; 214 227 } 228 #endif 215 229 216 230 /* failed, try single line. */ 217 #if __VERSION__ >= 14.0 231 #if __VERSION__ >= 21.0 232 GetComments(aComments, "L", sLexer); 233 for (i = 0; i < aComments._length(); i++) 234 if (!aComments[i].isDocumentation) 235 { 236 sLeft = aComments[i].delim1; 237 sRight = ''; 238 iColumn = aComments[i].startcol; 239 if (sLeft != '') 240 return true; 241 } 242 #else 243 # if __VERSION__ >= 14.0 218 244 GetComments(aComments, "linecomment", sLexer) 219 245 for (i = 0; i < aComments._length(); i++) 220 if ( !pos("documentation", aComments[i]) >0)246 if (pos("documentation", aComments[i]) <= 0) 221 247 { 222 248 sLine = aComments[i]; … … 224 250 } 225 251 if (sLine != '') 226 # else252 # else 227 253 rc = _ini_get_value(slick_path_search("user.vlx"), sLexer, 'linecomment', sLine); 228 254 if (rc) 229 255 rc = _ini_get_value(slick_path_search("vslick.vlx"), sLexer, 'linecomment', sLine); 230 256 if (!rc) 231 # endif257 # endif 232 258 { 233 259 sLeft = strip(word(sLine, 1)); … … 240 266 return true; 241 267 } 268 #endif 242 269 } 243 270
Note:
See TracChangeset
for help on using the changeset viewer.