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:
parent
566130590d
commit
7310369888
1 changed files with 8 additions and 0 deletions
|
@ -82,6 +82,14 @@ public class FunctionReferenceRule extends WordRule {
|
||||||
IToken token= (IToken)fWords.get(buffer);
|
IToken token= (IToken)fWords.get(buffer);
|
||||||
|
|
||||||
if (token != null) {
|
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++;
|
((TagDetector)fDetector).bracketNesting++;
|
||||||
return token;
|
return token;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue