diff --git a/autotests/folding/test.js.fold b/autotests/folding/test.js.fold
--- a/autotests/folding/test.js.fold
+++ b/autotests/folding/test.js.fold
@@ -21,3 +21,6 @@
ლಠ益ಠლ.ñá = 42;
δ /No-RegExp/
+
+/* Modelines: finish comment in incomplete Modeline:
+ * kate: replace-tabs */ normal text
diff --git a/autotests/html/test.js.html b/autotests/html/test.js.html
--- a/autotests/html/test.js.html
+++ b/autotests/html/test.js.html
@@ -27,4 +27,7 @@
ლಠ益ಠლ.ñá = 42;
δ /No-RegExp/
+
+/* Modelines: finish comment in incomplete Modeline:
+ * kate: replace-tabs */ normal text