nibags added a comment.
So I keep the DetectSpaces rule and only delete the LineContinue. By having a file with Modelines as a test, randomly, different .html and .ref files are generated each time I run "testhighlighter_test" and "htmlhighlighter_test". That is, sometimes the .html and .ref files show the Modelines highlighted and sometimes not. Also, the word `kate:` should be highlighted with "dsAnnotation" (which is pink in the Normal scheme). I attach a screenshot of two generated .html files. F6190099: Screenshot_20180813_033824.png <https://phabricator.kde.org/F6190099> The test file: F6190103: modelines.sh <https://phabricator.kde.org/F6190103> REPOSITORY R216 Syntax Highlighting REVISION DETAIL https://phabricator.kde.org/D14274 To: nibags, turbov, dhaumann, cullmann, vkrause, #kate Cc: kwrite-devel, kde-frameworks-devel, michaelh, kevinapavew, ngraham, bruns, demsking, cullmann, sars, dhaumann