diff options
| author | Zufu Liu <unknown> | 2019-09-30 12:15:31 +1000 | 
|---|---|---|
| committer | Zufu Liu <unknown> | 2019-09-30 12:15:31 +1000 | 
| commit | af271ed3f65cf6cd9b38a467960d6ae9f2c2ad22 (patch) | |
| tree | 96c343aa5886e0c5733f871a29e186feeca2cec2 /lexlib/LexerBase.cxx | |
| parent | 10a7ea9032f2d5e21e396226588ae51bec28acf3 (diff) | |
| download | scintilla-mirror-af271ed3f65cf6cd9b38a467960d6ae9f2c2ad22.tar.gz | |
Feature [feature-requests:#1305] Optimize setting up keyword lists in lexers.
Avoids splitting and sorting the input twice.
Diffstat (limited to 'lexlib/LexerBase.cxx')
| -rw-r--r-- | lexlib/LexerBase.cxx | 5 | 
1 files changed, 1 insertions, 4 deletions
| diff --git a/lexlib/LexerBase.cxx b/lexlib/LexerBase.cxx index f9e6292a1..ee3aa797e 100644 --- a/lexlib/LexerBase.cxx +++ b/lexlib/LexerBase.cxx @@ -75,10 +75,7 @@ const char * SCI_METHOD LexerBase::DescribeWordListSets() {  Sci_Position SCI_METHOD LexerBase::WordListSet(int n, const char *wl) {  	if (n < numWordLists) { -		WordList wlNew; -		wlNew.Set(wl); -		if (*keyWordLists[n] != wlNew) { -			keyWordLists[n]->Set(wl); +		if (keyWordLists[n]->Set(wl)) {  			return 0;  		}  	} | 
