diff --git a/autotests/folding/test.py.fold b/autotests/folding/test.py.fold --- a/autotests/folding/test.py.fold +++ b/autotests/folding/test.py.fold @@ -5,6 +5,9 @@ ### ''' +// alert check, no word delimiter check at start of word, bug 397719 +#TODO + a = 100_000 b = 856_264.65 c = 0x420_F52 diff --git a/autotests/html/test.coffee.html b/autotests/html/test.coffee.html --- a/autotests/html/test.coffee.html +++ b/autotests/html/test.coffee.html @@ -64,7 +64,7 @@ timelineEvent.class # Embedded JavaScript Code -markdown = `function () { +markdown = `function () { return \`In Markdown, write code like \\\`this\\\`\`; }` diff --git a/autotests/html/test.py.html b/autotests/html/test.py.html --- a/autotests/html/test.py.html +++ b/autotests/html/test.py.html @@ -11,6 +11,9 @@ ### ''' +// alert check, no word delimiter check at start of word, bug 397719 +#TODO + a = 100_000 b = 856_264.65 c = 0x420_F52 diff --git a/autotests/input/test.py b/autotests/input/test.py --- a/autotests/input/test.py +++ b/autotests/input/test.py @@ -5,6 +5,9 @@ ### ''' +// alert check, no word delimiter check at start of word, bug 397719 +#TODO + a = 100_000 b = 856_264.65 c = 0x420_F52 diff --git a/autotests/reference/test.coffee.ref b/autotests/reference/test.coffee.ref --- a/autotests/reference/test.coffee.ref +++ b/autotests/reference/test.coffee.ref @@ -58,7 +58,7 @@ timelineEvent.class

# Embedded JavaScript Code
-markdown = `function () {
+markdown = `function () {
return \`In Markdown, write code like \\\`this\\\`\`;
}`

diff --git a/autotests/reference/test.py.ref b/autotests/reference/test.py.ref --- a/autotests/reference/test.py.ref +++ b/autotests/reference/test.py.ref @@ -5,6 +5,9 @@ ###
'''

+// alert check, no word delimiter check at start of word, bug 397719
+#TODO
+
a = 100_000
b = 856_264.65
c = 0x420_F52
diff --git a/src/lib/rule.cpp b/src/lib/rule.cpp --- a/src/lib/rule.cpp +++ b/src/lib/rule.cpp @@ -550,9 +550,6 @@ MatchResult KeywordListRule::doMatch(const QString& text, int offset, const QStringList&) { - if (offset > 0 && !isWordDelimiter(text.at(offset - 1))) - return offset; - if (m_keywordList.isEmpty()) { const auto def = definition(); Q_ASSERT(def.isValid());