Community
    • Login

    User defined functionList no working

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    2 Posts 1 Posters 1.4k Views
    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
      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
        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
        • First post
          Last post
        The Community of users of the Notepad++ text editor.
        Powered by NodeBB | Contributors