Community
    • Login

    User defined functionList no working

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    2 Posts 1 Posters 1.6k 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.
    • Andre RenardA Offline
      Andre Renard
      last edited by

      I tried to define a function list for a corba idl file by adding this in the functionList.xml file:

      within <associationMap>:

      <association id="corba_syntax" ext=".idl" />
      <association id="corba_syntax" userDefinedLangName="CORBA" />
      

      and within <parsers>:

      <parser displayName="CORBA" id="corba_syntax">
      <classRange mainExpr="interface.*\{" openSymbole ="\{" closeSymbole="\}" commentExpr="(?s:/\*.*?\*/)|(?m-s://.*?$)">
      	<className>
      		<nameExpr expr="interface[\t ]+[\w]+" />
      		<nameExpr expr="[\t ]+[\w]+" />
      		<nameExp expr="[\w]+" />
      	</className>
      	<function mainExpr="[\w]+[\t ]+\(">
      		<functionName>
      			<funcNameExpr expr="[\w]+" />
      		</functionName>
      	</function>
      </classRange>
      </parser>
      

      I am using this file (test.idl) for testing:

      module test {
      interface EntityRoot { 
      };
      /* comment 1 */
      interface Entity : EntityRoot {	
      	void setName ( 
      		in string value // comment 2
      	) raises(ServerError);       
      	void changePosition (
      		in long value
      	) raises(ServerError);
      };
      };
      

      But it’s not working. Can somebody help me to correct my mistake?

      1 Reply Last reply Reply Quote 0
      • Andre RenardA Offline
        Andre Renard
        last edited by

        SORRY, IT IS WORKING.
        But I had two versions of Notepad++ without realizing it. Removing the old one resolved this issue.

        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