diff options
author | Orgad Shaneh <orgad.shaneh@audiocodes.com> | 2018-07-01 11:03:09 +0300 |
---|---|---|
committer | Orgad Shaneh <orgads@gmail.com> | 2018-07-02 07:50:29 +0000 |
commit | e5a8958e31f287adc56b3afcd1bb9167b774defc (patch) | |
tree | dc2077bc33df59bc55d050db526d6dfbe8ff8050 /src/plugins/texteditor/generichighlighter/highlightdefinitionhandler.h | |
parent | 58df07bc76bcc10c94f3f310bdefb4c914fcb831 (diff) |
GenericHighlighter: Support WordDetect
Added in Kate 3.5 (KDE 4.5).
Similar to StringDetect, but only matches whole word (\b<string>\b)
Already used in some of the built-in highlighters.
Change-Id: I03ae5e1db917e777a21bb96d9a31cc7771287f39
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: David Schulz <david.schulz@qt.io>
Diffstat (limited to 'src/plugins/texteditor/generichighlighter/highlightdefinitionhandler.h')
-rw-r--r-- | src/plugins/texteditor/generichighlighter/highlightdefinitionhandler.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/texteditor/generichighlighter/highlightdefinitionhandler.h b/src/plugins/texteditor/generichighlighter/highlightdefinitionhandler.h index 44f5b3004e..db3d97704b 100644 --- a/src/plugins/texteditor/generichighlighter/highlightdefinitionhandler.h +++ b/src/plugins/texteditor/generichighlighter/highlightdefinitionhandler.h @@ -67,6 +67,7 @@ private: void detect2CharsStarted(const QXmlAttributes &atts); void anyCharStarted(const QXmlAttributes &atts); void stringDetectedStarted(const QXmlAttributes &atts); + void wordDetectStarted(const QXmlAttributes &atts); void regExprStarted(const QXmlAttributes &atts); void keywordStarted(const QXmlAttributes &atts); void intStarted(const QXmlAttributes &atts); |