https://bugs.kde.org/show_bug.cgi?id=367720
--- Comment #2 from Jonathan Poelen <jonathan.poe...@gmail.com> --- I tried to make an example to reproduce the problem, but without success. <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE language SYSTEM "language.dtd"> <language name="Test" kateversion="5.0" version="1" section="Scripts" extensions="*.test" license="MIT"> <highlighting> <contexts> <context name="base" attribute="Normal" lineEndContext="#stay"> <RegExpr String="(.)" context="a" attribute="Normal" lookAhead="1"/> <!-- a --> </context> <context name="a" attribute="Normal" lineEndContext="#stay"> <RegExpr String="(%1b)" context="b" attribute="Normal" dynamic="1" lookAhead="1"/> <!-- ab --> </context> <context name="b" attribute="Label" lineEndContext="#stay" dynamic="true"> <StringDetect String="%1" context="#stay" attribute="Keyword" dynamic="true"/> <!-- ab --> </context> </contexts> <itemDatas> <itemData name="Normal" defStyleNum="dsNormal"/> <itemData name="Keyword" defStyleNum="dsKeyword"/> <itemData name="Label" defStyleNum="dsString"/> </itemDatas> </highlighting> </language> With ab ca ab All `ab` are Keyword -- You are receiving this mail because: You are watching all bug changes.