Community
    • Login

    Troubles while creating a custon functionList.xml

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    2 Posts 1 Posters 1.1k Views 1 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Andrea Del PreteA Offline
      Andrea Del Prete
      last edited by

      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() : VOID

      END 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!

      1 Reply Last reply Reply Quote 0
      • Andrea Del PreteA Offline
        Andrea Del Prete
        last edited by

        I forgot to add an image of how the function list parses the file with the configuration above:

        https://pasteboard.co/HtPeByg.png

        1 Reply Last reply Reply Quote 0

        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
        • First post
          Last post
        The Community of users of the Notepad++ text editor.
        Powered by NodeBB | Contributors