Hi. Have no luck understanding how to modify an exsisting syntax highlighting file Linden Scripting Language (.lsl) to include user defined functions. At the moment the syntax highlight a udf when it get parentheses but will not always recommend the function in autocomplete and the udf name will not highlight inside events like it does in global scope. I have tinkered a little with no luck and hoping someone can give an explanation on have to edit the existing highlight file to include the before mentioned.
The code bellow can serve as an example if you wish to open it with the above linked syntax package to se the issue at hand.
integer Adding(integer a, integer b) {
return a+b;
}
Subtrakt(integer a, integer b) {
llOwnerSay((string)(a-b));
}
UseAFunction() {
llOwnerSay("Adding: "+(string)Adding(1,2));
}
default {
touch_start(integer ts) {
}
state_entry() {
llOwnerSay("Answer one: "+(string)Adding(1,2));
llOwnerSay("Answer two on new line: ");
Subtrakt(3,1);
UseAFunction();
}
}```