Version: 2.5.7 (using KDE 3.5.7, Kubuntu (feisty) 4:3.5.7-0ubuntu1~feisty2) Compiler: Target: i486-linux-gnu OS: Linux (i686) release 2.6.20-16-generic Steps to reproduct: 1) Open a new file. 2) Click Tools --> Highlighting --> Other --> Makefile 3) Enter the following text: $(eval $(shell ls) As soon as the ) character is entered, kate highlight-matches the LEFT-most ( character from $(eval, instead of the one from $(shell.
The problem seems to be that we are only matching brackets if they have the same attributes set (katedocument.cpp:5078), and that's not the case in your example. I also noticed that the highlighting isn't correct (the last bracket should be blue, not red, right?), and that this bug can be fixed by correcting the highlighting rules. Unfortunately, I have no clue on how to do that..
It's needed a new context to handle the syntax inside the brackets. I have set the functions names to keyword and made a new context. I think this will solve this problem.
Created attachment 24660 [details] Makefile syntax highlighting source This should fix the brackets broken syntax.
SVN commit 805150 by mstocker: New syntax file for Makefiles from Rui Santana. Thanks a lot! BUG: 146524 M +51 -7 makefile.xml WebSVN link: http://websvn.kde.org/?view=rev&revision=805150