<table><tr><td style="">dhaumann created this revision.<br />dhaumann added reviewers: cullmann, vkrause.<br />Restricted Application added projects: Kate, Frameworks.<br />Restricted Application added subscribers: kde-frameworks-devel, kwrite-devel.<br />dhaumann requested review of this revision.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D14741">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>Returns whether the character <span class="phabricator-remarkup-mention-unknown">@p</span> c is a word delimiter.<br />
A delimiter defines whether a characters is a word boundary. Internally,<br />
delimiters are used for matching keyword lists. As example, typcally the<br />
dot '.' is a word delimiter. However, if you have a keyword in a keyword<br />
list that contains a dot, you have to add the dot to the<br />
<span class="phabricator-remarkup-mention-unknown">@e</span> weakDeliminator attribute of the <span class="phabricator-remarkup-mention-unknown">@e</span> general section in your<br />
highlighting definition. Similarly, sometimes additional delimiters are<br />
required, which can be specified in <span class="phabricator-remarkup-mention-unknown">@e</span> additionalDeliminator.</p>

<p>Checking whether a characters is a delimiter is useful for instance if<br />
text is selected with double click. Typically, the whole word should be<br />
selected in this case. Similarly to the example above, the dot '.'<br />
usually acts as word delimiter. However, using this function you can<br />
implement text selection in such a way that keyword lists are correctly<br />
selected.</p></div></div><br /><div><strong>TEST PLAN</strong><div><p>make && make test, unit test still missing</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R216 Syntax Highlighting</div></div></div><br /><div><strong>BRANCH</strong><div><div>is-delimiter (branched from master)</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D14741">https://phabricator.kde.org/D14741</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>src/lib/definition.cpp<br />
src/lib/definition.h</div></div></div><br /><div><strong>To: </strong>dhaumann, cullmann, vkrause<br /><strong>Cc: </strong>kwrite-devel, kde-frameworks-devel, michaelh, kevinapavew, ngraham, bruns, demsking, cullmann, sars, dhaumann<br /></div>