title: Extract Function name from Notepad++ for FunctionList
body: <p>I am trying to set up a <strong>Function List</strong> for a new language in <strong>Notepad++</strong>. To do so, it requires me to add a parser in <code>functionlist.xml</code>. I added the parser, and it works, but it also adds the actual word <code>function</code> in the function list. How can I remove word function from it? I have looked into the Regular Expression's lookbehind feature. But I could not make it work. </p>
  
  <p><strong>Here is the parser.</strong> </p>
  
  <pre><code>&lt;parser displayName="mylang" id="mylang_syntax"&gt;
    &lt;function mainExpr="^\s*(function|Function|FUNCTION)[\t ]+[\w]+"&gt;
      &lt;functionName&gt;
        &lt;NameExpr expr="/(?&lt;=^function /)[\w]+" /&gt;
        &lt;NameExpr expr="/(?&lt;=^Function /)[\w]+" /&gt;
        &lt;nameexpr expr="/(?&lt;=^FUNCTION /)[\w]+" /&gt;
      &lt;/functionName&gt;
    &lt;/function&gt;
  &lt;/parser&gt;
  </code></pre>
  
  <p><strong>Here is an example text to try on</strong>. </p>
  
  <pre><code>FUNCTION uniqn, input_array
    IF(!DEBUG) THEN PRINT, 'uniqn_no_sort'
    counter = 0L
    length = n_elements(input_array(*, 0))
    duplicate_array = STRARR(length)
  END
  
  function get_algorithm_type, type
    IF(!DEBUG) THEN PRINT, 'get_algorithm_type'
    print, type
  END
  </code></pre>
  
  <p>This is how it looks in the functionlist sidebar. I would like to remove the word 'function'. <strong>Please note</strong> that it needs to work in Notepad++. (I cannot use any other Text editors). Thank you in advance for your help. </p>
  
  <p><a href="https://i.stack.imgur.com/buzeh.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/buzeh.png" alt="enter image description here"></a></p>
  
  <p>Here are additional help. </p>
  
  <ul>
  <li><a href="https://notepad-plus-plus.org/features/function-list.html" rel="nofollow noreferrer">https://notepad-plus-plus.org/features/function-list.html</a></li>
  <li><a href="https://notepad-plus-plus.org/community/topic/14328/user-defined-functionlist-no-working" rel="nofollow noreferrer">https://notepad-plus-plus.org/community/topic/14328/user-defined-functionlist-no-working</a></li>
  </ul>