D24378: WordDetect rule: detect delimiters at the inner edge of the string

Dominik Haumann noreply at phabricator.kde.org
Thu Oct 3 20:26:57 BST 2019

dhaumann added a comment.

  I think it's fine as is. The docbook says:
    Detect an exact string but additionally require word boundaries
    such as a dot <userinput>'.'</userinput> or a whitespace on the beginning
    and the end of the word. Think of <userinput>\b<string>\b</userinput>
    in terms of a regular expression, but it is faster than the rule <userinput>RegExpr</userinput>.
  Imo `<userinput>\b<string>\b</userinput>` implies that if a string itself starts/ends with a \b character, then this should match as well. And given our unit tests do not show any changes, I think we are good to go.
  Please commit.

  R216 Syntax Highlighting



To: nibags, #framework_syntax_highlighting, dhaumann, cullmann, vkrause, jpoelen
Cc: kwrite-devel, kde-frameworks-devel, LeGast00n, GB_2, domson, michaelh, ngraham, bruns, demsking, cullmann, sars, dhaumann
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kwrite-devel/attachments/20191003/d67a66d3/attachment-0001.html>

More information about the KWrite-Devel mailing list