1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

bug 406911: Highlight called function name as in $(call func-name) in Makefile Editor

This commit is contained in:
Andrew Gvozdev 2013-05-03 10:38:12 -04:00
parent 566130590d
commit 7310369888

View file

@ -82,6 +82,14 @@ public class FunctionReferenceRule extends WordRule {
IToken token= (IToken)fWords.get(buffer);
if (token != null) {
if (buffer.equals("$(call") || buffer.equals("$$(call")) {
if ((char)scanner.read() == ' ') {
do {
c= scanner.read();
} while (c == '(' || c == ')' || fDetector.isWordPart((char) c));
}
scanner.unread();
}
((TagDetector)fDetector).bracketNesting++;
return token;
}