This patch adds much wanted (seems so) option to set difference highlight wordbreak characters.
The patch:
- adds new string option which keeps the characters
- sets current .,;: chars as default value for the option
- adds edit control to editor options for setting chars
The implementation (changes to stringdiff) are not cleanest possible. Actually they are quite ugly adding several static variables. But I could not find a clean way to add this kind of optionality to the strindiff without changing the API remarkably.
One important thing to consider is this must not add any performance hit. So adding the string as diff function parameter is out of question.
There is also two new unit tests for this feature making sure setting the break characters has wanted effect.
The patch
Attaching updated patch (v2). Removed change that doesn't belong to this patch.
File Added: Option_for_wordbreak_chars_v2.patch
Updated patch V2
Feature request (one of many):
#1565872 Allow custom word delimiters
http://winmerge.org/rfe/1565872
Committed to SVN trunk:
Completed: At revision: 6521