Neil Hodgson, 25.02.2007 01:50:
Frank Wunderlich:
the original api-file has the line content: ...attr(X)
if i let the () then the function-list contains some parts of the
"content:"-line. if i replace the brackets with e.g. [] it works well...
The API code first checks for '(' before checking for ':' in the
definition and if found uses the position of the '(' which makes the
check fail yielding no matches. You could try changing the LengthWord
function in scintilla/src/PropSet.cxx to look for the otherSeparator
first but there may be other effects from that change.
i've tried it like this:
static unsigned int LengthWord(const char *word, char otherSeparator) {
// Find a '('. If that fails go to the end of the string.
const char *endWord;
if (otherSeparator)
endWord = strchr(word, otherSeparator);
if (!endWord)
endWord = strchr(word, '(');
if (!endWord)
endWord = word + strlen(word);
// Last case always succeeds so endWord != 0
// Drop any space characters.
if (endWord > word) {
endWord--; // Back from the '(', otherSeparator, or '\0'
// Move backwards over any spaces
while ((endWord > word) && (IsASpace(*endWord))) {
endWord--;
}
}
return endWord - word;
}
it can be compiled without errors, but it won't work...
regards Frank
_______________________________________________
Scite-interest mailing list
[email protected]
http://mailman.lyra.org/mailman/listinfo/scite-interest