Fix/be respectful of special characters like exclamation marks in highlight phrases since they are also word boundaries (#1890)

* Add missing includes

We would normally have these included in another file already, or even
the precompiled headers, but having the files included here too makes
testing single parts easier.

* Modify the regex building of highlight phrases for non-regex phrases

For phrases like !test, the word boundary checking we did before was not
enough, so we now check for either a word boundary, a whitespace
character, or the line start/end.

* Add tests for ensuring I haven't fully broken the highlight system

* Add changelog entry
This commit is contained in:
pajlada
2020-08-22 09:37:03 -04:00
committed by GitHub
parent 17b26ef59c
commit 0cbddf7e9b
7 changed files with 222 additions and 7 deletions
+5
View File
@@ -1,5 +1,10 @@
#pragma once
#include <memory>
#include <unordered_map>
#include <QColor>
namespace chatterino {
enum class ColorType {