Troubles while creating a custon functionList.xml
-
Hi guys,
I’m trying to set up the functionList.xml in order to detect two types of entries in the custom language that we have to use.The structures that I would like to identify looks more or less as the following:
my_ref_function(“some text”);
– a comment
FUNCTION func_name() : VOIDEND FUNCTION
my_ref_function(“some more text”);
FUNCTION another_function() : VOID
END FUNCTION
FUNCTION a_third_function() : VOID
END FUNCTION
I would like to list the names of all the FUNCTION and the text that appears as an argument to my_ref_function()
So far, I have come up with the following:<parser id=“tesla_function” displayName=“TAL source” commentExpr=“(–.?$)“>
<function mainExpr=”(?:FUNCTION|my_ref_function()[ \t]([0-9A-z_])(?(.))” displayMode=“$functionName”>
<functionName>
<nameExpr expr=“.*”/>
</functionName>
</function>
</parser>But the list is not properly formatted unless a comment is placed after each line that should be listed.
Can anyone give me some suggestions on how to proceed?Thanks a lot!
-
I forgot to add an image of how the function list parses the file with the configuration above: