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:
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login