diff options
| author | nyamatongwe <unknown> | 2004-05-29 23:26:35 +0000 | 
|---|---|---|
| committer | nyamatongwe <unknown> | 2004-05-29 23:26:35 +0000 | 
| commit | 113a919b21405e3ef7505bffb6ccb625bc4df37a (patch) | |
| tree | 3c3e9485713a9d681a9ae080c77e8584e2f58d9e /src/PropSet.cxx | |
| parent | de52429589e050226b44d3bd6889cdb765e859ed (diff) | |
| download | scintilla-mirror-113a919b21405e3ef7505bffb6ccb625bc4df37a.tar.gz | |
Removed treating ':' as end of word in GetNearestWords
as it conflicted with languages that use ':' inside identifiers.
Functionality can be achieved by passing ':' as otherSeparator
parameter.
Diffstat (limited to 'src/PropSet.cxx')
| -rw-r--r-- | src/PropSet.cxx | 8 | 
1 files changed, 3 insertions, 5 deletions
| diff --git a/src/PropSet.cxx b/src/PropSet.cxx index d0a7f8b0f..00e9986f7 100644 --- a/src/PropSet.cxx +++ b/src/PropSet.cxx @@ -913,15 +913,13 @@ const char *WordList::GetNearestWord(const char *wordStart, int searchLen /*= -1  /**   * Find the length of a 'word' which is actually an identifier in a string - * which looks like "identifier(..." or "identifier:" or "identifier" and where + * which looks like "identifier(..." or "identifier" and where   * there may be extra spaces after the identifier that should not be   * counted in the length.   */  static unsigned int LengthWord(const char *word, char otherSeparator) { -	// Find a '(', or ':'. If that fails go to the end of the string. +	// Find a '('. If that fails go to the end of the string.  	const char *endWord = strchr(word, '('); -	if (!endWord) -		endWord = strchr(word, ':');  	if (!endWord && otherSeparator)  		endWord = strchr(word, otherSeparator);  	if (!endWord) @@ -930,7 +928,7 @@ static unsigned int LengthWord(const char *word, char otherSeparator) {  	// Drop any space characters.  	if (endWord > word) { -		endWord--;	// Back from the '(', ':', or '\0' +		endWord--;	// Back from the '(', otherSeparator, or '\0'  		// Move backwards over any spaces  		while ((endWord > word) && (IsASpace(*endWord))) {  			endWord--; | 
