The feature described in bug #120544 is not documented in the KDE Kate manual Revision 3.10.1 KDE 4.10.1 (2013-02-10). Links: kate: syntax highlighting needs more flexible context rules http://bugs.kde.org/show_bug.cgi?id=120544 http://docs.kde.org/stable/en/applications/kate/kate-highlight-rules-detailled.html The current text: To go back more steps, the #pop keyword can be repeated: #pop#pop#pop Suggestion for the new text: To go back more steps, the #pop keyword can be repeated: #pop#pop#pop To go back two contexts and push "contextname" onto the stack: #pop#pop!contextname It is a very useful feature. Reproducible: Always
I have to agree: this would have saved me a lot of work in the last couple of years. I can't believe it was implemented in September 2006. Thanks for bringing it to attention.
Git commit 0b3ec5422da9456fb699c0a93adf22da7201ecd3 by Dominik Haumann. Committed on 09/08/2013 at 12:29. Pushed by dhaumann into branch 'master'. mention #pop!Context again It's in the docs already since commit http://commits.kde.org/kate/c588e9f1f75d19a2916dff4b0c2b080242a716b9 Mentioning it explicitly again won't harm, though. M +1 -1 doc/kate/highlighting.docbook http://commits.kde.org/kate/0b3ec5422da9456fb699c0a93adf22da7201ecd3
From the code, it may even be possible to write things like #pop#pop!SomeContext##C++. Not tested, though ;)
Git commit 2efd91dbe4feef7d2d9359d91479e18b5449af4d by Burkhard Lück, on behalf of Dominik Haumann. Committed on 09/08/2013 at 12:29. Pushed by lueck into branch 'KDE/4.11'. mention #pop!Context again It's in the docs already since commit http://commits.kde.org/kate/c588e9f1f75d19a2916dff4b0c2b080242a716b9 Mentioning it explicitly again won't harm, though. (cherry picked from commit 0b3ec5422da9456fb699c0a93adf22da7201ecd3) backport to 4.11.1 M +1 -1 doc/kate/highlighting.docbook http://commits.kde.org/kate/2efd91dbe4feef7d2d9359d91479e18b5449af4d